]> git.baikalelectronics.ru Git - kernel.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)
commit05faaefa7390f94eeef136f8d00abe750a77aa9e
tree47d208ee32973389bf30d33fc85c1b7a2617aaff
parente288e8caf3c0c31b730daf64b1522a5ac785ccea
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