[1/4] xfs/093: make sure the scratch directory still exists after repair
diff mbox series

Message ID 154877863279.9277.4463697450629081138.stgit@magnolia
State Accepted
Headers show
Series
  • [1/4] xfs/093: make sure the scratch directory still exists after repair
Related show

Commit Message

Darrick J. Wong Jan. 29, 2019, 4:17 p.m. UTC
From: Darrick J. Wong <darrick.wong@oracle.com>

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>
---
 tests/xfs/093 |    1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

diff --git a/tests/xfs/093 b/tests/xfs/093
index 2b16020c..2dfad39d 100755
--- a/tests/xfs/093
+++ b/tests/xfs/093
@@ -97,6 +97,7 @@  $CHATTR_PROG -R -f -i "${SCRATCH_MNT}/"
 
 echo "+ modify files (2)"
 broken=0
+mkdir -p "${TESTDIR}"
 for x in `seq 65 70`; do
 	touch "${TESTFILE}.${x}" || broken=1
 done