summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJan Klos <honza.klos@gmail.com>2013-10-06 21:08:20 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-11-13 12:08:06 +0900
commit055950b91a1132641b62f017fe52f7d72e113322 (patch)
tree691853cc2a2da75d726ed54cc0ab0eb818286f36 /arch
parentb3d8eec617f5889f7a49c7efe2d8d7d21096d9e3 (diff)
cifs: Fix inability to write files >2GB to SMB2/3 shares
commit 2f6c9479633780ba4a3484bba7eba5a721a5cf20 upstream. When connecting to SMB2/3 shares, maximum file size is set to non-LFS maximum in superblock. This is due to cap_large_files bit being different for SMB1 and SMB2/3 (where it is just an internal flag that is not negotiated and the SMB1 one corresponds to multichannel capability, so maybe LFS works correctly if server sends 0x08 flag) while capabilities are checked always for the SMB1 bit in cifs_read_super(). The patch fixes this by checking for the correct bit according to the protocol version. Signed-off-by: Jan Klos <honza.klos@gmail.com> Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions