torture/smb2/ioctl: don't check for untruncated dest failure
authorDavid Disseldorp <ddiss@samba.org>
Wed, 21 Sep 2016 23:43:54 +0000 (16:43 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 22 Sep 2016 18:40:08 +0000 (20:40 +0200)
This should fail, but passes against WS2016 RTM...

2.3.8 FSCTL_DUPLICATE_EXTENTS_TO_FILE Reply:
The destination range extends beyond the target file's allocation size.
The caller might need to increase the target's allocation size before
using FSCTL_DUPLICATE_EXTENTS_TO_FILE.

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

index 5e5faa3c25de09706ed01547216501700a1f4b6b..7fca0073a2eaa6f63bb2c266ba8abea38253d04f 100644 (file)
@@ -5039,12 +5039,14 @@ static bool test_ioctl_dup_extents_len_beyond_dest(struct torture_context *tctx,
                                   "ndr_push_fsctl_dup_extents_to_file");
 
        status = smb2_ioctl(tree, tmp_ctx, &ioctl.smb2);
+#if 0
        /*
         * 2.3.8 FSCTL_DUPLICATE_EXTENTS_TO_FILE Reply - this should fail, but
         * passes against WS2016 RTM!
         */
        torture_assert_ntstatus_equal(tctx, status, NT_STATUS_NOT_SUPPORTED,
                                   "FSCTL_DUP_EXTENTS_TO_FILE");
+#endif
 
        /* the file sizes shouldn't have been changed */
        ZERO_STRUCT(io);