Skip to content

Commit 4511d7c

Browse files
committed
SMB3.1.1: fix mount failure to some servers when compression enabled
When sending the compression context to some servers, they rejected the SMB3.1.1 negotiate protocol because they expect the compression context to have a data length of a multiple of 8. Reviewed-by: Shyam Prasad N <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 16dd9b8 commit 4511d7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/cifs/smb2pdu.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ struct smb2_compression_capabilities_context {
394394
__u16 Padding;
395395
__u32 Flags;
396396
__le16 CompressionAlgorithms[3];
397+
__u16 Pad; /* Some servers require pad to DataLen multiple of 8 */
397398
/* Check if pad needed */
398399
} __packed;
399400

0 commit comments

Comments
 (0)