1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

vfs: add and use a few SMB_VFS_ODX defines

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Oct  8 20:21:21 UTC 2021 on sn-devel-184
This commit is contained in:
Ralph Boehme 2021-07-09 11:28:22 +02:00 committed by Jeremy Allison
parent 2f523a03f5
commit 3268bcd8f5
2 changed files with 13 additions and 3 deletions

View File

@ -241,9 +241,15 @@ NTSTATUS vfs_offload_token_create_blob(TALLOC_CTX *mem_ctx,
}
/* combine persistent and volatile handles for the resume key */
SBVAL(token_blob->data, 0, fsp->op->global->open_persistent_id);
SBVAL(token_blob->data, 8, fsp->op->global->open_volatile_id);
SIVAL(token_blob->data, 16, fsctl);
SBVAL(token_blob->data,
SMB_VFS_ODX_TOKEN_OFFSET_PFID,
fsp->op->global->open_persistent_id);
SBVAL(token_blob->data,
SMB_VFS_ODX_TOKEN_OFFSET_VFID,
fsp->op->global->open_volatile_id);
SIVAL(token_blob->data,
SMB_VFS_ODX_TOKEN_OFFSET_FSCTL,
fsctl);
return NT_STATUS_OK;
}

View File

@ -22,6 +22,10 @@
struct vfs_offload_ctx;
struct req_resume_key_rsp;
#define SMB_VFS_ODX_TOKEN_OFFSET_PFID 0
#define SMB_VFS_ODX_TOKEN_OFFSET_VFID 8
#define SMB_VFS_ODX_TOKEN_OFFSET_FSCTL 16
NTSTATUS vfs_offload_token_ctx_init(TALLOC_CTX *mem_ctx,
struct vfs_offload_ctx **_ctx);
NTSTATUS vfs_offload_token_db_store_fsp(struct vfs_offload_ctx *ctx,