torture/ioctl: add FSCTL_DUP_EXTENTS_TO_FILE tests
authorDavid Disseldorp <ddiss@samba.org>
Fri, 30 Jan 2015 11:59:42 +0000 (12:59 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 22 Sep 2016 18:40:08 +0000 (20:40 +0200)
commit281ce600de9a8eafbecf82a5444e922a31311552
tree7813e8bebf0dba0f5010284896e3b9caab10fc47
parentdd02a5c91763e83bae2e453f801a0f868cd7ac29
torture/ioctl: add FSCTL_DUP_EXTENTS_TO_FILE tests

FSCTL_DUPLICATE_EXTENTS_TO_FILE is yet another copy offload mechanism,
this time only targeting COW FSes, where the request triggers a meta-
data only clone of the source range.

These tests attempt to cover most of the normal use cases, as well as
number of more exotic scenarios.

FILE_SUPPORTS_BLOCK_REFCOUNTING FS attribute presence is checked prior
to running the tests, so they will currently be skipped during Samba
self test (which lacks the flag).

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