summaryrefslogtreecommitdiffstats
path: root/fs/proc/fd.c
diff options
context:
space:
mode:
authorJan Klos <honza.klos@gmail.com>2013-10-06 21:08:20 +0200
committerSteve French <smfrench@gmail.com>2013-10-07 09:54:45 -0500
commit2f6c9479633780ba4a3484bba7eba5a721a5cf20 (patch)
tree61a328a909b24d9d25ed61c38a3afd0933a94fe1 /fs/proc/fd.c
parenteb4c7df6c20b407ecbf1a985edc33d967371c2e8 (diff)
downloadlinux-2f6c9479633780ba4a3484bba7eba5a721a5cf20.tar.gz
linux-2f6c9479633780ba4a3484bba7eba5a721a5cf20.tar.bz2
linux-2f6c9479633780ba4a3484bba7eba5a721a5cf20.zip
cifs: Fix inability to write files >2GB to SMB2/3 shares
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. CC: Stable <stable@kernel.org> Signed-off-by: Jan Klos <honza.klos@gmail.com> Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/proc/fd.c')
0 files changed, 0 insertions, 0 deletions