Updated SMB3.1.1 client patches for implementation of parent lease key
Steve French
smfrench at gmail.com
Wed May 28 23:08:38 UTC 2025
Attached are updated patches from Henrique (potentially very
important) to set the ParentLeaseKey for SMB3/SMB3.1.1 mounts. I
fixed some minor checkpatch/sparse warnings and have tentatively added
them to cifs-2.6.git for-next and running tests on them now
[PATCH] smb: client: add ParentLeaseKey support
According to MS-SMB2 3.2.4.3.8, when opening a file the client must
lookup its parent directory, copy that entry’s LeaseKey into
ParentLeaseKey, and set SMB2_LEASE_FLAG_PARENT_LEASE_KEY_SET.
Extend lease context functions to carry a parent_lease_key and
lease_flags and to add them to the lease context buffer accordingly in
smb3_create_lease_buf. Also add a parent_lease_key field to struct
cifs_fid and lease_flags to cifs_open_parms.
Only applies to the SMB 3.x dialect family.
Fixes: f047390a097e ("CIFS: Add create lease v2 context for SMB3")
Signed-off-by: Henrique Carvalho <henrique.carvalho at suse.com>
--
Thanks,
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-smb-client-add-ParentLeaseKey-support.patch
Type: text/x-patch
Size: 4770 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20250528/2f2600d3/0001-smb-client-add-ParentLeaseKey-support.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-smb-client-use-ParentLeaseKey-in-open_cached_dir.patch
Type: text/x-patch
Size: 2678 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20250528/2f2600d3/0002-smb-client-use-ParentLeaseKey-in-open_cached_dir.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-smb-client-use-ParentLeaseKey-in-cifs_do_create.patch
Type: text/x-patch
Size: 2479 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20250528/2f2600d3/0003-smb-client-use-ParentLeaseKey-in-cifs_do_create.bin>
More information about the samba-technical
mailing list