torture/ioctl: add simple FSCTL_FILE_LEVEL_TRIM test
authorDavid Disseldorp <ddiss@samba.org>
Thu, 12 Mar 2015 10:01:17 +0000 (11:01 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 18 Mar 2015 20:32:46 +0000 (21:32 +0100)
commit74ff89a7e32ad46275fb9fe54d3e23c69d925ca7
treef3725fb106179fdd679c4750c982183d2c1ad6ad
parent5776904defab1148027232bcc826c811e1a889f9
torture/ioctl: add simple FSCTL_FILE_LEVEL_TRIM test

This test writes out a 128K file and then attempts to trim the first
half of the file. Trim support is first detected using an
FS_SECTOR_SIZE_INFORMATION query-info request. If the server doesn't
support trim, then the test is skipped.

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): Wed Mar 18 21:32:47 CET 2015 on sn-devel-104
source4/torture/smb2/ioctl.c