]> git.baikalelectronics.ru Git - kernel.git/commit
[SMB3] Enable fallocate -z support for SMB3 mounts
authorSteve French <smfrench@gmail.com>
Sun, 17 Aug 2014 23:16:40 +0000 (18:16 -0500)
committerSteve French <smfrench@gmail.com>
Sun, 17 Aug 2014 23:16:40 +0000 (18:16 -0500)
commit56d78b3b18731088e2290fc64d5386ecb527ffe1
tree6f3099407d45e8cc4d6b438f6587ddce8ef96cba
parentf3aff50e8b1d6aa57251f2f0e320b511f935bea6
[SMB3] Enable fallocate -z support for SMB3 mounts

fallocate -z (FALLOC_FL_ZERO_RANGE) can map to SMB3
FSCTL_SET_ZERO_DATA SMB3 FSCTL but FALLOC_FL_ZERO_RANGE
when called without the FALLOC_FL_KEEPSIZE flag set could want
the file size changed so we can not support that subcase unless
the file is cached (and thus we know the file size).

Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Pavel Shilovsky <pshilovsky@samba.org>
fs/cifs/smb2ops.c