diff options
author | Steve French <smfrench@gmail.com> | 2014-08-17 15:38:47 +0200 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2014-08-18 01:12:38 +0200 |
commit | 31742c5a331766bc7df6b0d525df00c6cd20d5a6 (patch) | |
tree | 8a8ca459f4bc29c8c6898d09765b3130e24862e3 /fs/cifs/smbfsctl.h | |
parent | Incorrect error returned on setting file compressed on SMB2 (diff) | |
download | linux-31742c5a331766bc7df6b0d525df00c6cd20d5a6.tar.xz linux-31742c5a331766bc7df6b0d525df00c6cd20d5a6.zip |
enable fallocate punch hole ("fallocate -p") for SMB3
Implement FALLOC_FL_PUNCH_HOLE (which does not change the file size
fortunately so this matches the behavior of the equivalent SMB3
fsctl call) for SMB3 mounts. This allows "fallocate -p" to work.
It requires that the server support setting files as sparse
(which Windows allows).
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smbfsctl.h')
-rw-r--r-- | fs/cifs/smbfsctl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smbfsctl.h b/fs/cifs/smbfsctl.h index 0e538b5c9622..83efa59535be 100644 --- a/fs/cifs/smbfsctl.h +++ b/fs/cifs/smbfsctl.h @@ -63,7 +63,7 @@ #define FSCTL_SET_OBJECT_ID_EXTENDED 0x000900BC /* BB add struct */ #define FSCTL_CREATE_OR_GET_OBJECT_ID 0x000900C0 /* BB add struct */ #define FSCTL_SET_SPARSE 0x000900C4 /* BB add struct */ -#define FSCTL_SET_ZERO_DATA 0x000900C8 /* BB add struct */ +#define FSCTL_SET_ZERO_DATA 0x000980C8 #define FSCTL_SET_ENCRYPTION 0x000900D7 /* BB add struct */ #define FSCTL_ENCRYPTION_FSCTL_IO 0x000900DB /* BB add struct */ #define FSCTL_WRITE_RAW_ENCRYPTED 0x000900DF /* BB add struct */ |