common: use mount/umount helpers everywhere
[xfstests-dev.git] / tests / xfs / 073
index 9def3c6f41b52c5c101c2354032b2e9fc22dcdc6..e1335df9133d0c5dcbac05843b37ac75db875467 100755 (executable)
@@ -41,7 +41,7 @@ imgs=$TEST_DIR/$$
 _cleanup()
 {
        cd /
-       umount $SCRATCH_MNT 2>/dev/null
+       _scratch_unmount 2>/dev/null
        umount $imgs.loop 2>/dev/null
        [ -d $imgs.loop ] && rmdir $imgs.loop
        umount $imgs.source_dir 2>/dev/null
@@ -144,7 +144,7 @@ _scratch_mount 2>/dev/null || _fail "initial scratch mount failed"
 echo
 echo === populating scratch device
 _populate_scratch
-umount $SCRATCH_MNT 2>/dev/null
+_scratch_unmount 2>/dev/null
 
 echo
 echo === copying scratch device to single target