diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2019-03-13 00:37:49 -0400 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-03-14 20:32:35 -0400 |
commit | 72c419d9b073628d3b5b0b2fc787b724f1a8c726 (patch) | |
tree | 47d208ee32973389bf30d33fc85c1b7a2617aaff /fs/cifs/smb2pdu.h | |
parent | ccdc77a3054afb851473e43f4d60890263cd22e9 (diff) |
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>
Diffstat (limited to 'fs/cifs/smb2pdu.h')
-rw-r--r-- | fs/cifs/smb2pdu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h index 0bd4d4802701..ee8977688e21 100644 --- a/fs/cifs/smb2pdu.h +++ b/fs/cifs/smb2pdu.h | |||
@@ -959,6 +959,13 @@ struct duplicate_extents_to_file { | |||
959 | __le64 ByteCount; /* Bytes to be copied */ | 959 | __le64 ByteCount; /* Bytes to be copied */ |
960 | } __packed; | 960 | } __packed; |
961 | 961 | ||
962 | /* | ||
963 | * Maximum number of iovs we need for an ioctl request. | ||
964 | * [0] : struct smb2_ioctl_req | ||
965 | * [1] : in_data | ||
966 | */ | ||
967 | #define SMB2_IOCTL_IOV_SIZE 2 | ||
968 | |||
962 | struct smb2_ioctl_req { | 969 | struct smb2_ioctl_req { |
963 | struct smb2_sync_hdr sync_hdr; | 970 | struct smb2_sync_hdr sync_hdr; |
964 | __le16 StructureSize; /* Must be 57 */ | 971 | __le16 StructureSize; /* Must be 57 */ |