diff options
| -rw-r--r-- | fs/cifs/smb2ops.c | 2 | ||||
| -rw-r--r-- | fs/cifs/smb2pdu.c | 2 | ||||
| -rw-r--r-- | fs/cifs/smb2pdu.h | 6 |
3 files changed, 9 insertions, 1 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index 35ddc3ed119d..787844bde384 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c | |||
| @@ -1047,6 +1047,7 @@ smb2_create_lease_buf(u8 *lease_key, u8 oplock) | |||
| 1047 | buf->ccontext.NameOffset = cpu_to_le16(offsetof | 1047 | buf->ccontext.NameOffset = cpu_to_le16(offsetof |
| 1048 | (struct create_lease, Name)); | 1048 | (struct create_lease, Name)); |
| 1049 | buf->ccontext.NameLength = cpu_to_le16(4); | 1049 | buf->ccontext.NameLength = cpu_to_le16(4); |
| 1050 | /* SMB2_CREATE_REQUEST_LEASE is "RqLs" */ | ||
| 1050 | buf->Name[0] = 'R'; | 1051 | buf->Name[0] = 'R'; |
| 1051 | buf->Name[1] = 'q'; | 1052 | buf->Name[1] = 'q'; |
| 1052 | buf->Name[2] = 'L'; | 1053 | buf->Name[2] = 'L'; |
| @@ -1073,6 +1074,7 @@ smb3_create_lease_buf(u8 *lease_key, u8 oplock) | |||
| 1073 | buf->ccontext.NameOffset = cpu_to_le16(offsetof | 1074 | buf->ccontext.NameOffset = cpu_to_le16(offsetof |
| 1074 | (struct create_lease_v2, Name)); | 1075 | (struct create_lease_v2, Name)); |
| 1075 | buf->ccontext.NameLength = cpu_to_le16(4); | 1076 | buf->ccontext.NameLength = cpu_to_le16(4); |
| 1077 | /* SMB2_CREATE_REQUEST_LEASE is "RqLs" */ | ||
| 1076 | buf->Name[0] = 'R'; | 1078 | buf->Name[0] = 'R'; |
| 1077 | buf->Name[1] = 'q'; | 1079 | buf->Name[1] = 'q'; |
| 1078 | buf->Name[2] = 'L'; | 1080 | buf->Name[2] = 'L'; |
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 0feb743894b8..b0037b609c54 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c | |||
| @@ -972,6 +972,7 @@ create_durable_buf(void) | |||
| 972 | buf->ccontext.NameOffset = cpu_to_le16(offsetof | 972 | buf->ccontext.NameOffset = cpu_to_le16(offsetof |
| 973 | (struct create_durable, Name)); | 973 | (struct create_durable, Name)); |
| 974 | buf->ccontext.NameLength = cpu_to_le16(4); | 974 | buf->ccontext.NameLength = cpu_to_le16(4); |
| 975 | /* SMB2_CREATE_DURABLE_HANDLE_REQUEST is "DHnQ" */ | ||
| 975 | buf->Name[0] = 'D'; | 976 | buf->Name[0] = 'D'; |
| 976 | buf->Name[1] = 'H'; | 977 | buf->Name[1] = 'H'; |
| 977 | buf->Name[2] = 'n'; | 978 | buf->Name[2] = 'n'; |
| @@ -996,6 +997,7 @@ create_reconnect_durable_buf(struct cifs_fid *fid) | |||
| 996 | buf->ccontext.NameLength = cpu_to_le16(4); | 997 | buf->ccontext.NameLength = cpu_to_le16(4); |
| 997 | buf->Data.Fid.PersistentFileId = fid->persistent_fid; | 998 | buf->Data.Fid.PersistentFileId = fid->persistent_fid; |
| 998 | buf->Data.Fid.VolatileFileId = fid->volatile_fid; | 999 | buf->Data.Fid.VolatileFileId = fid->volatile_fid; |
| 1000 | /* SMB2_CREATE_DURABLE_HANDLE_RECONNECT is "DHnC" */ | ||
| 999 | buf->Name[0] = 'D'; | 1001 | buf->Name[0] = 'D'; |
| 1000 | buf->Name[1] = 'H'; | 1002 | buf->Name[1] = 'H'; |
| 1001 | buf->Name[2] = 'n'; | 1003 | buf->Name[2] = 'n'; |
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h index 743e11e20c5c..69f3595d3952 100644 --- a/fs/cifs/smb2pdu.h +++ b/fs/cifs/smb2pdu.h | |||
| @@ -435,11 +435,15 @@ struct smb2_tree_disconnect_rsp { | |||
| 435 | #define SMB2_CREATE_SD_BUFFER "SecD" /* security descriptor */ | 435 | #define SMB2_CREATE_SD_BUFFER "SecD" /* security descriptor */ |
| 436 | #define SMB2_CREATE_DURABLE_HANDLE_REQUEST "DHnQ" | 436 | #define SMB2_CREATE_DURABLE_HANDLE_REQUEST "DHnQ" |
| 437 | #define SMB2_CREATE_DURABLE_HANDLE_RECONNECT "DHnC" | 437 | #define SMB2_CREATE_DURABLE_HANDLE_RECONNECT "DHnC" |
| 438 | #define SMB2_CREATE_ALLOCATION_SIZE "AlSi" | 438 | #define SMB2_CREATE_ALLOCATION_SIZE "AISi" |
| 439 | #define SMB2_CREATE_QUERY_MAXIMAL_ACCESS_REQUEST "MxAc" | 439 | #define SMB2_CREATE_QUERY_MAXIMAL_ACCESS_REQUEST "MxAc" |
| 440 | #define SMB2_CREATE_TIMEWARP_REQUEST "TWrp" | 440 | #define SMB2_CREATE_TIMEWARP_REQUEST "TWrp" |
| 441 | #define SMB2_CREATE_QUERY_ON_DISK_ID "QFid" | 441 | #define SMB2_CREATE_QUERY_ON_DISK_ID "QFid" |
| 442 | #define SMB2_CREATE_REQUEST_LEASE "RqLs" | 442 | #define SMB2_CREATE_REQUEST_LEASE "RqLs" |
| 443 | #define SMB2_CREATE_DURABLE_HANDLE_REQUEST_V2 "DH2Q" | ||
| 444 | #define SMB2_CREATE_DURABLE_HANDLE_RECONNECT_V2 "DH2C" | ||
| 445 | #define SMB2_CREATE_APP_INSTANCE_ID 0x45BCA66AEFA7F74A9008FA462E144D74 | ||
| 446 | #define SVHDX_OPEN_DEVICE_CONTEXT 0x83CE6F1AD851E0986E34401CC9BCFCE9 | ||
| 443 | 447 | ||
| 444 | struct smb2_create_req { | 448 | struct smb2_create_req { |
| 445 | struct smb2_hdr hdr; | 449 | struct smb2_hdr hdr; |
