enable fallocate punch hole ("fallocate -p") for SMB3
authorSteve French <smfrench@gmail.com>
Sun, 17 Aug 2014 13:38:47 +0000 (08:38 -0500)
committerSteve French <smfrench@gmail.com>
Sun, 17 Aug 2014 23:12:38 +0000 (18:12 -0500)
commit31742c5a331766bc7df6b0d525df00c6cd20d5a6
tree8a8ca459f4bc29c8c6898d09765b3130e24862e3
parentad3829cf1db5cf6a5dfafd54f9291b44f5fb1da8
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>
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.h
fs/cifs/smbfsctl.h