Commit 51b78ff
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: f047390 ("CIFS: Add create lease v2 context for SMB3")
Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent a3e771a commit 51b78ff
3 files changed
+18
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
559 | | - | |
| 559 | + | |
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
| |||
1442 | 1442 | | |
1443 | 1443 | | |
1444 | 1444 | | |
| 1445 | + | |
1445 | 1446 | | |
1446 | 1447 | | |
1447 | 1448 | | |
1448 | 1449 | | |
1449 | 1450 | | |
1450 | 1451 | | |
1451 | 1452 | | |
| 1453 | + | |
1452 | 1454 | | |
1453 | 1455 | | |
1454 | 1456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4069 | 4069 | | |
4070 | 4070 | | |
4071 | 4071 | | |
4072 | | - | |
| 4072 | + | |
4073 | 4073 | | |
4074 | 4074 | | |
4075 | 4075 | | |
| |||
4095 | 4095 | | |
4096 | 4096 | | |
4097 | 4097 | | |
4098 | | - | |
| 4098 | + | |
4099 | 4099 | | |
4100 | 4100 | | |
4101 | 4101 | | |
| |||
4105 | 4105 | | |
4106 | 4106 | | |
4107 | 4107 | | |
| 4108 | + | |
| 4109 | + | |
| 4110 | + | |
4108 | 4111 | | |
4109 | 4112 | | |
4110 | 4113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2392 | 2392 | | |
2393 | 2393 | | |
2394 | 2394 | | |
2395 | | - | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
2396 | 2400 | | |
2397 | 2401 | | |
2398 | 2402 | | |
2399 | | - | |
| 2403 | + | |
| 2404 | + | |
2400 | 2405 | | |
2401 | 2406 | | |
2402 | 2407 | | |
| |||
3069 | 3074 | | |
3070 | 3075 | | |
3071 | 3076 | | |
3072 | | - | |
| 3077 | + | |
| 3078 | + | |
| 3079 | + | |
3073 | 3080 | | |
3074 | 3081 | | |
3075 | 3082 | | |
| |||
0 commit comments