From: Darrick J. Wong Date: Thu, 21 Jul 2016 23:47:26 +0000 (-0700) Subject: xfs/234: use scratch device helpers X-Git-Tag: v2022.05.01~2405 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=49b0eda17a2e3bf727c807411e15e3a5d2822129;p=users%2Fhch%2Fxfstests-dev.git xfs/234: use scratch device helpers Use the helper functions for scratch devices. This fixes a problem where xfs/234 fails when there's a realtime device. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Signed-off-by: Eryu Guan --- diff --git a/tests/xfs/234 b/tests/xfs/234 index 2bbf2955d..8dadc3415 100755 --- a/tests/xfs/234 +++ b/tests/xfs/234 @@ -34,7 +34,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _cleanup() { cd / - umount $SCRATCH_MNT > /dev/null 2>&1 + _scratch_unmount > /dev/null 2>&1 rm -rf $tmp.* $metadump_file $TEST_DIR/image } @@ -76,8 +76,8 @@ _scratch_metadump $metadump_file # Now restore the obfuscated one back and take a look around echo "Restore metadump" xfs_mdrestore $metadump_file $TEST_DIR/image -_mount -t $FSTYP $TEST_DIR/image $SCRATCH_MNT -umount $SCRATCH_MNT +SCRATCH_DEV=$TEST_DIR/image _scratch_mount +SCRATCH_DEV=$TEST_DIR/image _scratch_unmount echo "Check restored fs" _check_generic_filesystem $metadump_file