summaryrefslogtreecommitdiff
path: root/source4/torture/smb2
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2017-05-03 09:26:43 +0200
committerRalph Boehme <slow@samba.org>2017-05-10 08:22:18 +0200
commit3b4d6267d1108d44b79b8bf5d92ec01c917a3397 (patch)
tree67edcd3fb1b970b5398fb23f57f28e0f55e48ea2 /source4/torture/smb2
parentda95471bf448ed7eb9dd68a3544da2fb31c45293 (diff)
downloadsamba-3b4d6267d1108d44b79b8bf5d92ec01c917a3397.tar.gz
torture/ioctl: fix dup_extents destination truncate
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>
Diffstat (limited to 'source4/torture/smb2')
-rw-r--r--source4/torture/smb2/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/smb2/ioctl.c b/source4/torture/smb2/ioctl.c
index 53476fa3b17..bd8310d4623 100644
--- a/source4/torture/smb2/ioctl.c
+++ b/source4/torture/smb2/ioctl.c
@@ -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");