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:
parent
2f523a03f5
commit
3268bcd8f5
@ -241,9 +241,15 @@ NTSTATUS vfs_offload_token_create_blob(TALLOC_CTX *mem_ctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* combine persistent and volatile handles for the resume key */
|
/* combine persistent and volatile handles for the resume key */
|
||||||
SBVAL(token_blob->data, 0, fsp->op->global->open_persistent_id);
|
SBVAL(token_blob->data,
|
||||||
SBVAL(token_blob->data, 8, fsp->op->global->open_volatile_id);
|
SMB_VFS_ODX_TOKEN_OFFSET_PFID,
|
||||||
SIVAL(token_blob->data, 16, fsctl);
|
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;
|
return NT_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,10 @@
|
|||||||
struct vfs_offload_ctx;
|
struct vfs_offload_ctx;
|
||||||
struct req_resume_key_rsp;
|
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,
|
NTSTATUS vfs_offload_token_ctx_init(TALLOC_CTX *mem_ctx,
|
||||||
struct vfs_offload_ctx **_ctx);
|
struct vfs_offload_ctx **_ctx);
|
||||||
NTSTATUS vfs_offload_token_db_store_fsp(struct vfs_offload_ctx *ctx,
|
NTSTATUS vfs_offload_token_db_store_fsp(struct vfs_offload_ctx *ctx,
|
||||||
|
Loading…
Reference in New Issue
Block a user