vfs_gpfs: Block punchhole calls for non-sparse files
authorChristof Schmitt <cs@samba.org>
Wed, 8 Aug 2018 21:54:24 +0000 (14:54 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 23 Apr 2019 00:33:03 +0000 (00:33 +0000)
commit1c3731ccefb198adc9fb00b8bd61150c3ce23d14
treebfb91a6d0f5c8119c0fdd7100f9e201eb7eb002e
parenta0bc1f9d430aec7a5c3974f51689248390b2e469
vfs_gpfs: Block punchhole calls for non-sparse files

The core smbd code implements ZERO_DATA for non-sparse files by punching
a hole and filling it again with a fallocate(FL_KEEP_SIZE) call. As GPFS
does not provide the fallocate(FL_KEEP_SIZE) call and non-sparse files
should not contain holes, block the punchhole; effectively only allowing
ZERO_DATA/punchhole calls for sparse files.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Apr 23 00:33:03 UTC 2019 on sn-devel-144
source3/modules/vfs_gpfs.c