torture/ioctl: fix dup_extents destination truncate
authorDavid Disseldorp <ddiss@samba.org>
Wed, 3 May 2017 07:26:43 +0000 (09:26 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 10 May 2017 06:22:18 +0000 (08:22 +0200)
The dup_extents_compressed_dest test fails to correctly truncate the
dup_extents destination. Fix it.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
source4/torture/smb2/ioctl.c

index 53476fa3b176c8a44a724c5e9f62031eca83e439..bd8310d46237a5325a5810f64afecdff4471459e 100644 (file)
@@ -5847,7 +5847,7 @@ static bool test_ioctl_dup_extents_compressed_dest(struct torture_context *tctx,
        ZERO_STRUCT(sinfo);
        sinfo.end_of_file_info.level = RAW_SFILEINFO_END_OF_FILE_INFORMATION;
        sinfo.end_of_file_info.in.file.handle = dest_h;
-       sinfo.end_of_file_info.in.size = dup_ext_buf.byte_count;
+       sinfo.end_of_file_info.in.size = 4096;
        status = smb2_setinfo_file(tree, &sinfo);
        torture_assert_ntstatus_ok(tctx, status, "smb2_setinfo_file");