mkdir -p $subvol_mnt
while [ ! -e $stop_file ]; do
$BTRFS_UTIL_PROG subvolume create $btrfs_mnt/$subvol_name
- $MOUNT_PROG -o subvol=$subvol_name $btrfs_dev $subvol_mnt
+ _mount -o subvol=$subvol_name $btrfs_dev $subvol_mnt
_unmount $subvol_mnt
$BTRFS_UTIL_PROG subvolume delete $btrfs_mnt/$subvol_name
done
local btrfs_mnt=$1
while true; do
for algo in no zlib lzo; do
- $MOUNT_PROG -o remount,compress=$algo $btrfs_mnt
+ _mount -o remount,compress=$algo $btrfs_mnt
done
done
}
_mount_delay()
{
_scratch_options mount
- $MOUNT_PROG -t $FSTYP `_common_dev_mount_options` $SCRATCH_OPTIONS \
+ _mount -t $FSTYP `_common_dev_mount_options` $SCRATCH_OPTIONS \
$DELAY_DEV $SCRATCH_MNT
}
_dmerror_mount()
{
_scratch_options mount
- $MOUNT_PROG -t $FSTYP `_common_dev_mount_options $*` $SCRATCH_OPTIONS \
+ _mount -t $FSTYP `_common_dev_mount_options $*` $SCRATCH_OPTIONS \
$DMERROR_DEV $SCRATCH_MNT
}
_log_writes_mount()
{
_scratch_options mount
- $MOUNT_PROG -t $FSTYP `_common_dev_mount_options $*` $SCRATCH_OPTIONS \
+ _mount -t $FSTYP `_common_dev_mount_options $*` $SCRATCH_OPTIONS \
$LOGWRITES_DMDEV $SCRATCH_MNT
}
[ -n "$upperdir" ] && [ "$upperdir" != "-" ] && \
diropts+=",upperdir=$upperdir,workdir=$workdir"
- $MOUNT_PROG -t overlay $diropts `_common_dev_mount_options $*`
+ _mount -t overlay $diropts `_common_dev_mount_options $*`
}
# Mount with mnt/dev of scratch mount and custom mount options
_overlay_scratch_mount_opts()
{
- $MOUNT_PROG -t overlay $OVL_BASE_SCRATCH_MNT $SCRATCH_MNT $*
+ _mount -t overlay $OVL_BASE_SCRATCH_MNT $SCRATCH_MNT $*
}
# Mount with same options/mnt/dev of scratch mount, but optionally
# By default, libmount merges remount options with old mount options.
# overlayfs does not support re-configuring the same mount options.
# We workaround this problem with --options-mode ignore.
- $MOUNT_PROG $SCRATCH_MNT --options-mode ignore $*
+ _mount $SCRATCH_MNT --options-mode ignore $*
return
fi
$MKFS_EXT4_PROG -F -b $BLOCK_SIZE $SCRATCH_DEV > $seqres.full 2>&1 || \
_notrun "Could not create ext4 filesystem"
# Manual mount so we don't use -t btrfs or selinux context
-mount -t ext4 $SCRATCH_DEV $SCRATCH_MNT
+_mount -t ext4 $SCRATCH_DEV $SCRATCH_MNT
if [ $? -ne 0 -a $BLOCK_SIZE -gt $(_get_page_size) ]; then
_notrun "block size $BLOCK_SIZE is not supported by ext4"
fi
# And the files in that image should match
mkdir -p $SCRATCH_MNT/mnt
-mount -o loop $SCRATCH_MNT/ext2_saved/image $SCRATCH_MNT/mnt || \
+_mount -o loop $SCRATCH_MNT/ext2_saved/image $SCRATCH_MNT/mnt || \
_fail "could not loop mount saved ext4 image"
echo "Checking saved ext2 image against the original one:"
_fail "restored ext4 image is corrupt"
# Mount the un-converted ext4 device & check the contents
-mount -t ext4 $SCRATCH_DEV $SCRATCH_MNT
+_mount -t ext4 $SCRATCH_DEV $SCRATCH_MNT
echo "Checking rolled back ext2 against the original one:"
$FSSUM_PROG -r $tmp.original $SCRATCH_MNT/$BASENAME
subvol_mnt=$TEST_DIR/$seq.mnt
mkdir -p $subvol_mnt
$BTRFS_UTIL_PROG subvolume create $SCRATCH_MNT/subvol >>$seqres.full 2>&1
-$MOUNT_PROG -o subvol=subvol $SELINUX_MOUNT_OPTIONS $SCRATCH_DEV $subvol_mnt
+_mount -o subvol=subvol $SELINUX_MOUNT_OPTIONS $SCRATCH_DEV $subvol_mnt
status=$?
exit
# Bind-mount a directory under the default subvolume.
mkdir "$SCRATCH_MNT/testvol/testdir"
mkdir "$SCRATCH_MNT/testvol/mnt"
-mount --bind "$SCRATCH_MNT/testvol/testdir" "$SCRATCH_MNT/testvol/mnt"
+_mount --bind "$SCRATCH_MNT/testvol/testdir" "$SCRATCH_MNT/testvol/mnt"
# Now attempt to delete the default subvolume.
$BTRFS_UTIL_PROG subvolume delete "$SCRATCH_MNT/testvol" >>$seqres.full 2>&1
_notrun "Could not create ext3 filesystem"
# mount and populate non-extent file
-mount -t ext3 $SCRATCH_DEV $SCRATCH_MNT
+_mount -t ext3 $SCRATCH_DEV $SCRATCH_MNT
if [ $? -ne 0 -a $BLOCK_SIZE -gt $(_get_page_size) ]; then
_notrun "block size $BLOCK_SIZE is not supported by ext3"
fi
$E2FSCK_PROG -fyD $SCRATCH_DEV >> $seqres.full 2>&1
# mount and populate extent file
-mount -t ext4 $SCRATCH_DEV $SCRATCH_MNT
+_mount -t ext4 $SCRATCH_DEV $SCRATCH_MNT
populate_data "$SCRATCH_MNT/ext3_ext4_data/ext4"
# Compute md5 of ext3,ext4 files.
# Now we mount the subvol2, which makes subvol3 not accessible for this mount
# point, but we should be able to delete it using it's subvolume id
-$MOUNT_PROG -o subvol=subvol2 $SCRATCH_DEV $SCRATCH_MNT
+_mount -o subvol=subvol2 $SCRATCH_DEV $SCRATCH_MNT
_delete_and_list subvol3 "Last remaining subvolume:"
_scratch_unmount
# Import common functions.
. ./common/filter.btrfs
-$MOUNT_PROG -V | grep -q 'fd-based-mount'
+_mount -V | grep -q 'fd-based-mount'
if [ "$?" -eq 0 ]; then
_fixed_by_kernel_commit cda7163d4e3d \
"btrfs: fix per-subvolume RO/RW flags with new mount API"
_scratch_unmount
-$MOUNT_PROG -t btrfs -odegraded ${devs[0]} $SCRATCH_MNT
+_mount -t btrfs -odegraded ${devs[0]} $SCRATCH_MNT
$BTRFS_UTIL_PROG device remove --force missing $SCRATCH_MNT >> $seqres.full
$BTRFS_UTIL_PROG balance start --full-balance $SCRATCH_MNT >> $seqres.full
$seqres.full 2>&1 || _fail "mkfs failed"
echo "+++ mount image file" | tee -a $seqres.full
- $MOUNT_PROG -t ${FSTYP} ${LOOP_DEVICE} ${IMG_MNT} > \
+ _mount -t ${FSTYP} ${LOOP_DEVICE} ${IMG_MNT} > \
/dev/null 2>&1 || _fail "mount failed"
echo "+++ resize fs to $final_size" | tee -a $seqres.full
{
echo "# mount to nonexistent mount point" >>$seqres.full
rm -rf $TEST_DIR/nosuchdir
- $MOUNT_PROG $SCRATCH_DEV $TEST_DIR/nosuchdir >>$seqres.full 2>&1
+ _mount $SCRATCH_DEV $TEST_DIR/nosuchdir >>$seqres.full 2>&1
}
# fs driver should be able to handle mounting a free loop device gracefully xfs
fs=xfs
fi
echo "# mount with wrong fs type" >>$seqres.full
- $MOUNT_PROG -t $fs $SCRATCH_DEV $SCRATCH_MNT >>$seqres.full 2>&1
+ _mount -t $fs $SCRATCH_DEV $SCRATCH_MNT >>$seqres.full 2>&1
}
# umount a symlink to device, which is not mounted.
rm -fr test
mkdir test || exit 1
cd $TEST_DIR/test
-mount > t_mtab
+_mount > t_mtab
mtab()
{
cat $tmp.out
echo "---------------------------------------------------"
$here/src/lstat64 $1
- mount | grep $SCRATCH_MNT
+ _mount | grep $SCRATCH_MNT
fi
}
$XFS_IO_PROG -t -c "pwrite 0 512" $SYMLINK | _filter_xfs_io
echo "== write to bind-mounted rw file on ro fs"
-mount --bind $TARGET $BINDFILE
+_mount --bind $TARGET $BINDFILE
# with and without -f (adds O_CREAT)
$XFS_IO_PROG -c "pwrite 0 512" $BINDFILE | _filter_xfs_io
$XFS_IO_PROG -f -c "pwrite 0 512" $BINDFILE | _filter_xfs_io
$XFS_IO_PROG -fc "pwrite 0 520m" $fs_mnt/testfile >>$seqres.full 2>&1
# remount should not hang
-$MOUNT_PROG -o remount,ro $fs_mnt >>$seqres.full 2>&1
+_mount -o remount,ro $fs_mnt >>$seqres.full 2>&1
_unmount $fs_mnt &>/dev/null
_destroy_loop_device $loop_dev
sz=$((blksz * blocks))
echo "Mount otherdir"
-$MOUNT_PROG --bind $SCRATCH_MNT $otherdir
+_mount --bind $SCRATCH_MNT $otherdir
echo "Create file"
_pwrite_byte 0x61 0 $sz $testdir/file >> $seqres.full
sz=$((blocks * blksz))
echo "Mount otherdir"
-$MOUNT_PROG --bind $SCRATCH_MNT $otherdir
+_mount --bind $SCRATCH_MNT $otherdir
echo "Create file"
_pwrite_byte 0x61 0 $sz $testdir/file >> $seqres.full
_set_encpolicy $SCRATCH_MNT/ro_dir |& _filter_scratch
_get_encpolicy $SCRATCH_MNT/ro_dir |& _filter_scratch
_scratch_remount rw
-mount --bind $SCRATCH_MNT $SCRATCH_MNT/ro_bind_mnt
-mount -o remount,ro,bind $SCRATCH_MNT/ro_bind_mnt
+_mount --bind $SCRATCH_MNT $SCRATCH_MNT/ro_bind_mnt
+_mount -o remount,ro,bind $SCRATCH_MNT/ro_bind_mnt
_set_encpolicy $SCRATCH_MNT/ro_bind_mnt/ro_dir |& _filter_scratch
_get_encpolicy $SCRATCH_MNT/ro_bind_mnt/ro_dir |& _filter_scratch
_unmount $SCRATCH_MNT/ro_bind_mnt
_scratch_mkfs >$seqres.full 2>&1
_get_mount -t $FSTYP $SCRATCH_DEV $MNTHEAD
- $MOUNT_PROG --make-"${type}" $MNTHEAD
+ _mount --make-"${type}" $MNTHEAD
mkdir $mpA $mpB $mpC $mpD
}
echo "bind $source on $dest"
_get_mount -t $FSTYP $SCRATCH_DEV $mpA
mkdir -p $mpA/dir 2>/dev/null
- $MOUNT_PROG --make-shared $mpA
+ _mount --make-shared $mpA
_get_mount --bind $mpA $mpB
- $MOUNT_PROG --make-"$source" $mpB
+ _mount --make-"$source" $mpB
# maybe unbindable at here
_get_mount --bind $mpB $mpC 2>/dev/null
if [ $? -ne 0 ]; then
_scratch_mkfs >>$seqres.full 2>&1
_get_mount -t $FSTYP $SCRATCH_DEV $MNTHEAD
- $MOUNT_PROG --make-"${type}" $MNTHEAD
+ _mount --make-"${type}" $MNTHEAD
mkdir $mpA $mpB $mpC
}
echo "make-$cmd a $orgs mount"
_get_mount -t $FSTYP $SCRATCH_DEV $mpA
mkdir -p $mpA/dir 2>/dev/null
- $MOUNT_PROG --make-shared $mpA
+ _mount --make-shared $mpA
# prepare the original status on mpB
_get_mount --bind $mpA $mpB
# shared&slave status need to do make-slave then make-shared
# two operations.
for t in $orgs; do
- $MOUNT_PROG --make-"$t" $mpB
+ _mount --make-"$t" $mpB
done
# "before" for prepare and check original status
_put_mount # umount C
fi
if [ "$i" = "before" ];then
- $MOUNT_PROG --make-"${cmd}" $mpB
+ _mount --make-"${cmd}" $mpB
fi
done
_scratch_mkfs >$seqres.full 2>&1
_get_mount -t $FSTYP $SCRATCH_DEV $MNTHEAD
- $MOUNT_PROG --make-"${type}" $MNTHEAD
+ _mount --make-"${type}" $MNTHEAD
mkdir $mpA $mpB $mpC
}
_get_mount -t $FSTYP $SCRATCH_DEV $mpA
mkdir $mpA/mnt1
- $MOUNT_PROG --make-shared $mpA
+ _mount --make-shared $mpA
_get_mount --bind $mpA $mpB
_get_mount --bind $mpA $mpC
- $MOUNT_PROG --make-slave $mpB
- $MOUNT_PROG --make-slave $mpC
+ _mount --make-slave $mpB
+ _mount --make-slave $mpC
_get_mount -t $FSTYP $SCRATCH_DEV $mpA/mnt1
mkdir $mpA/mnt1/mnt2
if [ "$FSTESTS_ISOL" = "privatens" ]; then
move_proc="$tmp.procdir"
mkdir -p "$move_proc"
- mount --move /proc "$move_proc"
+ _mount --move /proc "$move_proc"
fi
flock -x $test_fd
cat /proc/locks >> $seqres.full
grep -q ":$tf_inode " /proc/locks || echo "lock info not found"
if [ -n "$move_proc" ]; then
- mount --move "$move_proc" /proc
+ _mount --move "$move_proc" /proc
fi
# success, all done
_get_mount -t $FSTYP $SCRATCH_DEV $SRCHEAD
# make sure $SRCHEAD is private
- $MOUNT_PROG --make-private $SRCHEAD
+ _mount --make-private $SRCHEAD
_get_mount -t $FSTYP $SCRATCH_DEV $DSTHEAD
# test start with a bind, then make-shared $DSTHEAD
_get_mount --bind $DSTHEAD $DSTHEAD
- $MOUNT_PROG --make-"${type}" $DSTHEAD
+ _mount --make-"${type}" $DSTHEAD
mkdir $mpA $mpB $mpC $mpD
}
echo "move $source to $dest"
_get_mount -t $FSTYP $SCRATCH_DEV $mpA
mkdir -p $mpA/dir 2>/dev/null
- $MOUNT_PROG --make-shared $mpA
+ _mount --make-shared $mpA
# need a peer for slave later
_get_mount --bind $mpA $mpB
- $MOUNT_PROG --make-"$source" $mpB
+ _mount --make-"$source" $mpB
# maybe unbindable at here
_get_mount --move $mpB $mpC 2>/dev/null
if [ $? -ne 0 ]; then
mkdir $SCRATCH_MNT/workdir$tag
mkdir $SCRATCH_MNT/upperdir$tag
- mount -t overlay overlay -o "$l,$u,$w,$i" $mergedir
+ _mount -t overlay overlay -o "$l,$u,$w,$i" $mergedir
mv $mergedir/etc/access.conf $mergedir/etc/access.conf.bak
touch $mergedir/etc/access.conf
mv $mergedir/etc/access.conf $mergedir/etc/access.conf.bak
echo Files on different mounts
mkdir -p $SCRATCH_MNT/xyz
-mount --bind $dir $SCRATCH_MNT/xyz --bind
+_mount --bind $dir $SCRATCH_MNT/xyz --bind
_pwrite_byte 0x60 0 $((blksz * (nrblks + 2))) $dir/c >> $seqres.full
$XFS_IO_PROG -c "exchangerange $SCRATCH_MNT/xyz/c" $dir/a
_unmount $SCRATCH_MNT/xyz
# mount underlying xfs
mkdir -p ${OVL_BASE_SCRATCH_MNT}/lowermnt
mkdir -p ${OVL_BASE_SCRATCH_MNT}/uppermnt
-$MOUNT_PROG $fs_loop_dev ${OVL_BASE_SCRATCH_MNT}/lowermnt
-$MOUNT_PROG $upper_loop_dev ${OVL_BASE_SCRATCH_MNT}/uppermnt
+_mount $fs_loop_dev ${OVL_BASE_SCRATCH_MNT}/lowermnt
+_mount $upper_loop_dev ${OVL_BASE_SCRATCH_MNT}/uppermnt
# prepare dirs
mkdir -p ${OVL_BASE_SCRATCH_MNT}/lowermnt/lower
# create a tmpfs in $TEST_DIR
tmpfsdir=$TEST_DIR/tmpfs
mkdir -p $tmpfsdir
-$MOUNT_PROG -t tmpfs tmpfs $tmpfsdir
+_mount -t tmpfs tmpfs $tmpfsdir
mkdir -p $tmpfsdir/{lower,upper,work,mnt}
mkdir -p -m 0 $tmpfsdir/upper/testd
create_test_files $lowertestdir
# bind mount to pin lower test dir dentry to dcache
-$MOUNT_PROG --bind $lowertestdir $lowertestdir
+_mount --bind $lowertestdir $lowertestdir
# For non-upper overlay mount, nfs_export requires disabling redirect_dir.
_overlay_scratch_mount_opts \
# _overlay_mount_* helpers do not handle special chars well, so execute mount directly.
# if escaped colons are not parsed correctly, mount will fail.
-$MOUNT_PROG -t overlay ovl_esc_test $SCRATCH_MNT \
+_mount -t overlay ovl_esc_test $SCRATCH_MNT \
-o"upperdir=$upperdir,workdir=$workdir" \
-o"lowerdir=$lowerdir_colons_esc:$lowerdir_spaces" \
2>&1 | tee -a $seqres.full
# if spaces are not escaped when showing mount options,
# mount command will not show the word 'spaces' after the spaces
-$MOUNT_PROG -t overlay | grep ovl_esc_test | tee -a $seqres.full | grep -v spaces && \
+_mount -t overlay | grep ovl_esc_test | tee -a $seqres.full | grep -v spaces && \
echo "ERROR: escaped spaces truncated from lowerdir mount option"
# Re-create the upper/work dirs to mount them with a different lower
# and this test will fail, but the failure would indicate a libmount issue, not
# a kernel issue. Therefore, force libmount to use mount(2) syscall, so we only
# test the kernel fix.
-LIBMOUNT_FORCE_MOUNT2=always $MOUNT_PROG -t overlay $OVL_BASE_SCRATCH_DEV $SCRATCH_MNT \
+LIBMOUNT_FORCE_MOUNT2=always _mount -t overlay $OVL_BASE_SCRATCH_DEV $SCRATCH_MNT \
-o"upperdir=$upperdir,workdir=$workdir,lowerdir=$lowerdir_commas_esc" 2>> $seqres.full || \
echo "ERROR: incorrect parsing of escaped comma in lowerdir mount option"
# _overlay_mount_* helpers do not handle lowerdir+,datadir+, so execute mount directly.
# check illegal combinations and order of lowerdir,lowerdir+,datadir+
-$MOUNT_PROG -t overlay none $SCRATCH_MNT \
+_mount -t overlay none $SCRATCH_MNT \
-o"lowerdir=$lowerdir,lowerdir+=$lowerdir_colons" \
2>> $seqres.full && \
echo "ERROR: invalid combination of lowerdir and lowerdir+ mount options"
$UMOUNT_PROG $SCRATCH_MNT 2>/dev/null
-$MOUNT_PROG -t overlay none $SCRATCH_MNT \
+_mount -t overlay none $SCRATCH_MNT \
-o"lowerdir=$lowerdir,datadir+=$lowerdir_colons" \
-o redirect_dir=follow,metacopy=on 2>> $seqres.full && \
echo "ERROR: invalid combination of lowerdir and datadir+ mount options"
$UMOUNT_PROG $SCRATCH_MNT 2>/dev/null
-$MOUNT_PROG -t overlay none $SCRATCH_MNT \
+_mount -t overlay none $SCRATCH_MNT \
-o"datadir+=$lowerdir,lowerdir+=$lowerdir_colons" \
-o redirect_dir=follow,metacopy=on 2>> $seqres.full && \
echo "ERROR: invalid order of lowerdir+ and datadir+ mount options"
$UMOUNT_PROG $SCRATCH_MNT 2>/dev/null
# mount is expected to fail with escaped colons.
-$MOUNT_PROG -t overlay none $SCRATCH_MNT \
+_mount -t overlay none $SCRATCH_MNT \
-o"lowerdir+=$lowerdir_colons_esc" \
2>> $seqres.full && \
echo "ERROR: incorrect parsing of escaped colons in lowerdir+ mount option"
$UMOUNT_PROG $SCRATCH_MNT 2>/dev/null
# mount is expected to succeed without escaped colons.
-$MOUNT_PROG -t overlay ovl_esc_test $SCRATCH_MNT \
+_mount -t overlay ovl_esc_test $SCRATCH_MNT \
-o"lowerdir+=$lowerdir_colons,datadir+=$lowerdir_spaces" \
-o redirect_dir=follow,metacopy=on \
2>&1 | tee -a $seqres.full
# if spaces are not escaped when showing mount options,
# mount command will not show the word 'spaces' after the spaces
-$MOUNT_PROG -t overlay | grep ovl_esc_test | tee -a $seqres.full | \
+_mount -t overlay | grep ovl_esc_test | tee -a $seqres.full | \
grep -q 'datadir+'.*spaces || \
echo "ERROR: escaped spaces truncated from datadir+ mount option"
_check_require_logdev()
{
echo " *** mount without logdev (expect failure)"
- if mount -t xfs $SCRATCH_DEV $SCRATCH_MNT >$tmp.err 2>&1
+ if _mount -t xfs $SCRATCH_DEV $SCRATCH_MNT >$tmp.err 2>&1
then
cat $tmp.err
echo " !!! mount succeeded (expecting failure)"
if [ -w $seqres.full ]; then
echo "--- mounts at end (after cleanup)" >> $seqres.full
- mount >> $seqres.full
+ _mount >> $seqres.full
fi
}
echo "" >> $seqres.full
echo "--- mounts" >> $seqres.full
-mount >> $seqres.full
+_mount >> $seqres.full
_log "Create ext2 fs on scratch"
mkfs -t ext2 -F $SCRATCH_DEV >> $seqres.full 2>&1 \
|| _fail "!!! failed to mkfs ext2"
_log "Mount ext2 fs on scratch"
-mount -t ext2 $SCRATCH_DEV $SCRATCH_MNT >> $seqres.full 2>&1 \
+_mount -t ext2 $SCRATCH_DEV $SCRATCH_MNT >> $seqres.full 2>&1 \
|| _fail "!!! failed to mount"
_log "Create xfs fs in file on scratch"
unset loop_dev1
echo "--- mounts at end (before cleanup)" >> $seqres.full
-mount >> $seqres.full
+_mount >> $seqres.full
# success, all done
status=0
# These mounted operations should pass
echo "=== mount ==="
-$MOUNT_PROG $loop_dev $mntdir || _fail "!!! failed to loopback mount"
+_mount $loop_dev $mntdir || _fail "!!! failed to loopback mount"
echo "=== xfs_growfs - check device node ==="
$XFS_GROWFS_PROG -D 8192 $loop_dev > /dev/null
_unmount $mntdir || _fail "!!! failed to unmount"
echo "=== mount device symlink ==="
-$MOUNT_PROG $loop_symlink $mntdir || _fail "!!! failed to loopback mount"
+_mount $loop_symlink $mntdir || _fail "!!! failed to loopback mount"
echo "=== xfs_growfs - check device symlink ==="
$XFS_GROWFS_PROG -D 16384 $loop_symlink > /dev/null
mkfs.xfs -f -bsize=4096 -l size=32m -dagsize=76288719b,size=3905982455b \
$tmpfile | mkfs_filter
-mount -o loop $tmpfile $tmpdir || _fail "!!! failed to loopback mount"
+_mount -o loop $tmpfile $tmpdir || _fail "!!! failed to loopback mount"
# see what happens when we growfs it
echo "=== xfs_growfs ==="
echo "*** mount loop filesystem"
loop_dev=$(_create_loop_device $LOOP_IMG)
- mount $loop_dev $LOOP_MNT
+ _mount $loop_dev $LOOP_MNT
echo "*** preallocate large file"
$XFS_IO_PROG -f -c "resvsp 0 $fsize" $LOOP_MNT/foo | _filter_io
$XFS_GROWFS_PROG $tmpfile 2>&1 | _filter_test_dir
echo "=== mount ==="
-$MOUNT_PROG -o loop $tmpfile $tmpdir || _fail "!!! failed to loopback mount"
+_mount -o loop $tmpfile $tmpdir || _fail "!!! failed to loopback mount"
echo "=== xfs_growfs - mounted - check absolute path ==="
$XFS_GROWFS_PROG -D 8192 $tmpdir | _filter_test_dir > /dev/null
echo "=== xfs_growfs - bind mount ==="
mkdir $tmpbind
-$MOUNT_PROG -o bind $tmpdir $tmpbind
+_mount -o bind $tmpdir $tmpbind
$XFS_GROWFS_PROG -D 32768 $tmpbind | _filter_test_dir > /dev/null
echo "=== xfs_growfs - bind mount - relative path ==="
_scratch_mkfs_xfs -m crc=0 -i size=256 >> $seqres.full 2>&1
# Manually mount to avoid fs-wide context set by default in xfstests
-mount $SCRATCH_DEV $SCRATCH_MNT
+_mount $SCRATCH_DEV $SCRATCH_MNT
touch $SCRATCH_MNT/$seq.test
_mkfs_dev -d cowextsize=$MAXEXTLEN -l size=256m $loop_dev >> $seqres.full
mkdir $loop_mount
-mount $loop_dev $loop_mount
+_mount $loop_dev $loop_mount
echo "Create crazy huge file"
huge_file="$loop_mount/a"
# Test
echo "*** dump with bind-mounted test ***" >> $seqres.full
-$MOUNT_PROG --bind $TEST_DIR/src.$seq $TEST_DIR/dest.$seq || _fail "Bind mount failed"
+_mount --bind $TEST_DIR/src.$seq $TEST_DIR/dest.$seq || _fail "Bind mount failed"
$XFSDUMP_PROG -L session -M test -f $tmp.dump $TEST_DIR/dest.$seq \
>> $seqres.full 2>&1 && echo "dump with bind-mounted should be failed, but passed."