torture/ioctl: remove FS specific sparse punch check
authorDavid Disseldorp <ddiss@samba.org>
Mon, 23 Feb 2015 10:09:02 +0000 (11:09 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 9 Mar 2015 20:27:07 +0000 (21:27 +0100)
commit904d5809e588a898bfd9658eeb3c9b4bc63695f8
tree2f4fae14b751b3f4e2f761524a52b581a5bd6e4b
parentf5c472ea47b2b45f8303e62772a21b77644ed5dc
torture/ioctl: remove FS specific sparse punch check

Samba uses PUNCH_HOLE to zero a range, and subsequently uses fallocate()
to allocate the punched range if the file is marked non-sparse and
"strict allocate" is enabled.

In both cases, the zeroed range will not be detected by SEEK_DATA, so
the range won't be present in QAR responses until the file is marked
non-sparse again.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/smb2/ioctl.c