From: Darrick J. Wong Date: Tue, 29 Jan 2019 16:17:12 +0000 (-0800) Subject: xfs/093: make sure the scratch directory still exists after repair X-Git-Tag: v2022.05.01~1274 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=141c0f5a9a20e78a5795e036da94ecb8663422d3;p=xfstests-dev.git 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 --- 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