ltp/fsx: do size check after closeopen operation

I was running down a i_size problem and was missing the failure until
the next iteration of fsx operations because we do the file size check
_before_ the closeopen operation.  Move it after the closeopen operation
so we can catch problems where the file gets messed up on disk.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Josef Bacik
2020-01-07 11:55:40 -05:00
committed by Eryu Guan
parent af37fc423f
commit 27e2a2bd2f
+2 -2
View File
@@ -2211,10 +2211,10 @@ have_op:
check_contents();
out:
if (sizechecks && testcalls > simulatedopcount)
check_size();
if (closeopen)
docloseopen();
if (sizechecks && testcalls > simulatedopcount)
check_size();
return 1;
}