From: Darrick J. Wong Date: Tue, 29 Jan 2019 16:17:19 +0000 (-0800) Subject: xfs/138: format the scratch device before using it X-Git-Tag: v2022.05.01~1273 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f479ce6186d03cc93680b1ac073dd0dc31baba7e;p=xfstests-dev.git xfs/138: format the scratch device before using it Format the scratch device before using it, or else xfs_db will fail, particularly if the previous test left a corrupt fs behind. Signed-off-by: Darrick J. Wong Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/tests/xfs/138 b/tests/xfs/138 index 36490e6a..41988530 100755 --- a/tests/xfs/138 +++ b/tests/xfs/138 @@ -38,6 +38,7 @@ echo This is file B ENDL echo "Test with -c" +_scratch_mkfs > $seqres.full 2>&1 _scratch_xfs_db -c "sb 0" -c "p magicnum" -c "source $tmp.a" -c "p magicnum" | sed -e 's/0x58465342/XFS_MAGIC/g' echo "Test with interactive"