Skip to content

Commit

Permalink
torture/ioctl: fix dup_extents destination truncate
Browse files Browse the repository at this point in the history
The dup_extents_compressed_dest test fails to correctly truncate the
dup_extents destination. Fix it.

Signed-off-by: David Disseldorp <[email protected]>
Reviewed-by: Ralph Böhme <[email protected]>
  • Loading branch information
ddiss authored and slowfranklin committed May 10, 2017
1 parent da95471 commit 3b4d626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source4/torture/smb2/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 3b4d626

Please sign in to comment.