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>
Showing
- fs/cifs/cifsfs.c 19 additions, 0 deletionsfs/cifs/cifsfs.c
- fs/cifs/cifsglob.h 2 additions, 0 deletionsfs/cifs/cifsglob.h
- fs/cifs/smb2ops.c 45 additions, 0 deletionsfs/cifs/smb2ops.c
- fs/cifs/smb2pdu.h 6 additions, 0 deletionsfs/cifs/smb2pdu.h
- fs/cifs/smbfsctl.h 1 addition, 1 deletionfs/cifs/smbfsctl.h
Loading
Please register or sign in to comment