common: use mount/umount helpers everywhere
[xfstests-dev.git] / tests / xfs / 111
index 7c8f2638c0eff536e43e77033ec15fe3d6aaee30..f6a41a8fd6d1012cc90992b69f5549f95818aa41 100755 (executable)
@@ -45,7 +45,7 @@ rm -f $seqres.full
 [ "$XFS_FSR_PROG" = "" ] && _notrun "xfs_fsr not found"
 
 # real QA test starts here
-umount $SCRATCH_DEV 2>/dev/null
+_scratch_unmount 2>/dev/null
 MKFS_OPTIONS="-bsize=4096"
 MOUNT_OPTIONS="-o noatime"
 _scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs
@@ -61,7 +61,7 @@ done
 
 # Roughly the middle of the created inodes
 INO=`ls -i $SCRATCH_MNT/512 | awk '{print $1}'`
-umount $SCRATCH_DEV
+_scratch_unmount
 
 # Figure out where that middle inode starts
 BYTE=`$XFS_DB_PROG -c "convert inode $INO byte" $SCRATCH_DEV \
@@ -77,7 +77,7 @@ echo Attempting bulkstat
 $XFS_FSR_PROG $SCRATCH_MNT | _filter_scratch
 
 # Fix up intentional corruption so test can pass
-umount $SCRATCH_DEV
+_scratch_unmount
 $XFS_REPAIR_PROG $SCRATCH_DEV >> $seqres.full 2>&1
 
 status=0