]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/093: make sure the scratch directory still exists after repair
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 29 Jan 2019 16:17:12 +0000 (08:17 -0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 3 Feb 2019 07:43:26 +0000 (15:43 +0800)
Make sure that we still have the scratch directory after repairing our
corrupted filesystem, because repair could have nuked it.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/xfs/093

index 2b16020c3a91653681aaf4f4e4ffa390fae4ad16..e09e8499da63aa7cb4f45f8f4a1eb079eac12304 100755 (executable)
@@ -97,6 +97,9 @@ $CHATTR_PROG -R -f -i "${SCRATCH_MNT}/"
 
 echo "+ modify files (2)"
 broken=0
+# Make sure that we still have the scratch directory after repairing our
+# corrupted filesystem, because repair could have nuked it.
+mkdir -p "${TESTDIR}"
 for x in `seq 65 70`; do
        touch "${TESTFILE}.${x}" || broken=1
 done