common: use mount/umount helpers everywhere
[xfstests-dev.git] / tests / xfs / 007
index 76c100ff9af2bfd34f5ac03ea8711b1835337e29..f2e358495219139616573b668491df3b396a7d22 100755 (executable)
@@ -60,7 +60,7 @@ do_test()
        off_opts=$3
 
        echo "*** umount"
-       umount $SCRATCH_MNT
+       _scratch_unmount
 
        QINO_1=`xfs_db -c "sb 0" -c "p" $SCRATCH_DEV | \
                        grep $qino_1 | awk '{print $NF}'`
@@ -76,7 +76,7 @@ do_test()
        xfs_quota -x -c "off -$off_opts" $SCRATCH_MNT
        xfs_quota -x -c "remove -$off_opts" $SCRATCH_MNT
        echo "*** umount"
-       umount $SCRATCH_MNT
+       _scratch_unmount
 
        echo "*** Usage after quotarm ***"
        xfs_db -c "inode $QINO_1" -c "p core.nblocks" $SCRATCH_DEV