]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cifs: fix smb3_zero_range so it can expand the file-size when required
authorRonnie Sahlberg <lsahlber@redhat.com>
Wed, 13 Mar 2019 04:37:49 +0000 (14:37 +1000)
committerSteve French <stfrench@microsoft.com>
Fri, 15 Mar 2019 00:32:35 +0000 (19:32 -0500)
commit72c419d9b073628d3b5b0b2fc787b724f1a8c726
tree47d208ee32973389bf30d33fc85c1b7a2617aaff
parentccdc77a3054afb851473e43f4d60890263cd22e9
cifs: fix smb3_zero_range so it can expand the file-size when required

This allows fallocate -z to work against a Windows2016 share.

This is due to the SMB3 ZERO_RANGE command does not modify the filesize.
To address this we will now append a compounded SET-INFO to update the
end-of-file information.

This brings xfstests generic/469 closer to working against a windows share.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.c
fs/cifs/smb2pdu.h