Send durable handle v2 contexts when use of persistent handles required
Subsystems (2)
PATCH 1/1 Send durable handle v2 contexts when use of persistent handles required
Version 2 of the patch. Thanks to Dan Carpenter and the smatch tool for finding a problem in the first version of this patch.
CC Dan Carpenter <[email protected]>
Reviewed-by Pavel Shilovsky <[email protected]>
--- fs/cifs/cifsglob.h | 1 + fs/cifs/smb2pdu.c | 123 ++++++++++++++++++++++++++++++++++++++++++++++++++++- fs/cifs/smb2pdu.h | 45 ++++++++++++++++++++ fs/cifs/smbfsctl.h | 2 +- 4 files changed, 168 insertions(+), 3 deletions(-)
fs/cifs/cifsglob.h +1 -0
@@ -1018,6 +1018,7 @@ struct cifs_fid {__u64 persistent_fid;/* persist file id for smb2 */ __u64 volatile_fid;/* volatile file id for smb2 */ __u8 lease_key[SMB2_LEASE_KEY_SIZE ];/* lease key for smb2 */ +__u8 create_guid[16 ];#endif struct cifs_pending_open *pending_open;unsigned int epoch;
fs/cifs/smb2pdu.c +121 -2
141 lines not on this page · raw message
fs/cifs/smb2pdu.h +45 -0
57 lines not on this page · raw message
fs/cifs/smbfsctl.h +1 -1
@@ -90,7 +90,7 @@#define FSCTL_SRV_ENUMERATE_SNAPSHOTS 0x00144064/* Retrieve an opaque file reference for server-side data movement ie copy */ #define FSCTL_SRV_REQUEST_RESUME_KEY 0x00140078 -#define FSCTL_LMR_REQUEST_RESILIENCY 0x001401D4/* BB add struct */ +#define FSCTL_LMR_REQUEST_RESILIENCY 0x001401D4#define FSCTL_LMR_GET_LINK_TRACK_INF 0x001400E8/* BB add struct */ #define FSCTL_LMR_SET_LINK_TRACK_INF 0x001400EC/* BB add struct */ #define FSCTL_VALIDATE_NEGOTIATE_INFO 0x00140204
Signature · 1 line
1.9.1