torture: basic FSCTL_SET_ZERO_DATA tests
commitcd87d9f78228a9eb3ebbc0deda41e9c1094905ca
authorDavid Disseldorp <ddiss@samba.org>
Tue, 2 Sep 2014 18:07:20 +0000 (2 20:07 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 8 Sep 2014 19:40:34 +0000 (8 21:40 +0200)
treeb52f450e3f84e98aa53d390103b9b0cc4259e595
parent5d8bfb5c41bbddb3c404bd177048fe2e396ce8f2
torture: basic FSCTL_SET_ZERO_DATA tests

Attempt to punch holes in a file using FSCTL_SET_ZERO_DATA. Check that
the resulting data is zeroed. Also confirm that when the file is marked
sparse, the zeroed range is no longer allocated.
Finally, check that removing the sparse flag causes any holes to be
unsparsed.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Sep  8 21:40:34 CEST 2014 on sn-devel-104
source4/torture/smb2/ioctl.c