diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-05-11 19:02:19 -0700 |
---|---|---|
committer | Eryu Guan <guaneryu@gmail.com> | 2021-05-16 23:55:46 +0800 |
commit | d80489e7d5881d7c70fefa9a5dc1cd1e15806107 (patch) | |
tree | 19396ffb935603a8e3eaac7ef91b1bfe4c9d4d3d /ltp | |
parent | 0df636ef78dc9cfa2df25c66b84c10aa6495ba4c (diff) |
fsx: fix backwards parameters in complaint about overly long copy
If fsx encounters a situation where copy_file_range reports that it
copied more than it was asked to, we report this as a failure.
Unfortunately, the parameters to the print function are backwards,
leading to this bogus complaint about a short copy:
do_copy_range: asked 28672, copied 24576??
When we really asked to copy 24k but 28k was copied instead.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
Diffstat (limited to 'ltp')
-rw-r--r-- | ltp/fsx.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1662,7 +1662,7 @@ do_copy_range(unsigned offset, unsigned length, unsigned dest) prt("copy range: 0x%x to 0x%x at 0x%x\n", offset, offset + length, dest); prt("do_copy_range: asked %u, copied %u??\n", - nr, olen); + olen, nr); report_failure(161); } else if (nr > 0) olen -= nr; |