From 141c0f5a9a20e78a5795e036da94ecb8663422d3 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Tue, 29 Jan 2019 08:17:12 -0800 Subject: [PATCH] xfs/093: make sure the scratch directory still exists after repair 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 Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- tests/xfs/093 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/xfs/093 b/tests/xfs/093 index 2b16020c..e09e8499 100755 --- a/tests/xfs/093 +++ b/tests/xfs/093 @@ -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 -- 2.39.5