[PATCH] xfstests: fsck scratch device if it got used
Eric Sandeen
sandeen at redhat.com
Thu Nov 29 12:59:55 CST 2012
This will cause the $SCRATCH_DEV to be fscked if it
was used in the prior test. Without this I don't
think it gets done unless specifically requested
by the test.
Also recreate lost+found/ in one test so that e2fsck
doesn't complain.
Signed-off-by: Eric Sandeen <sandeen at redhat.com>
---
diff --git a/check b/check
index a4af0f6..343735a 100755
--- a/check
+++ b/check
@@ -308,6 +308,9 @@ do
try="$try $seq"
n_try=`expr $n_try + 1`
_check_test_fs
+ if grep -q require_scratch $seq; then
+ _check_scratch_fs
+ fi
fi
seq="after_$seq"
diff --git a/062 b/062
index 9800e33..b727243 100755
--- a/062
+++ b/062
@@ -216,6 +216,9 @@ if [ $? -ne 0 ]; then
exit
fi
+# So e2fsck won't complain:
+[[ $FSTYP = ext* ]] && mkdir $SCRATCH_MNT/lost+found
+
# success, all done
status=0
exit
More information about the xfs
mailing list