torture/ioctl: add sparse_punch_invalid test
authorDavid Disseldorp <ddiss@samba.org>
Mon, 23 Feb 2015 10:29:52 +0000 (11:29 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 9 Mar 2015 20:27:07 +0000 (21:27 +0100)
commit4dec434f7151e0ef222aa72531f3353ee2651c74
treedaca666097e0bd0afc4ced1bc57a68b7c06d0735
parent81065a4801f70b4d9190bc2b351a08626e8df264
torture/ioctl: add sparse_punch_invalid test

Attempt to extend a file using ZERO_DATA. The operation should succeed,
but the file should not be extended, as specified in MS-FSCC <58>
Section 2.3.65:
  This FSCTL sets the range of bytes to zero (0) without extending the
  file size.

Also test zero length and invalid BFZ requests.

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