_cleanup()
{
cd /
- umount -d $SCRATCH_MNT/test2 > /dev/null 2>&1
- umount -d $SCRATCH_MNT/test > /dev/null 2>&1
+ umount $SCRATCH_MNT/test2 > /dev/null 2>&1
+ umount $SCRATCH_MNT/test > /dev/null 2>&1
rm -f $tmp.*
if [ -w $seqres.full ]
|| _fail "!!! clean failed"
_log "umount ext2 on xfs"
-umount -d $SCRATCH_MNT/test2 >> $seqres.full 2>&1 \
+umount $SCRATCH_MNT/test2 >> $seqres.full 2>&1 \
|| _fail "!!! umount ext2 failed"
_log "umount xfs"
-umount -d $SCRATCH_MNT/test >> $seqres.full 2>&1 \
+umount $SCRATCH_MNT/test >> $seqres.full 2>&1 \
|| _fail "!!! umount xfs failed"
echo "--- mounts at end (before cleanup)" >> $seqres.full
{
cd /
umount $SCRATCH_MNT 2>/dev/null
- umount -d $imgs.loop 2>/dev/null
+ umount $imgs.loop 2>/dev/null
[ -d $imgs.loop ] && rmdir $imgs.loop
- umount -d $imgs.source_dir 2>/dev/null
+ umount $imgs.source_dir 2>/dev/null
[ -d $imgs.source_dir ] && rm -rf $imgs.source_dir
rm -f $imgs.* $tmp.* /var/tmp/xfs_copy.log.*
}
echo unmounting and removing new image
umount $source_dir
- umount -d $target_dir > /dev/null 2>&1
+ umount $target_dir > /dev/null 2>&1
rm -f $target
}
{
cd /
rm -f $tmp.*
- umount -d $LOOP_MNT 2>/dev/null
+ umount $LOOP_MNT 2>/dev/null
rmdir $LOOP_MNT
}
$XFS_GROWFS_PROG $LOOP_MNT 2>&1 | _filter_growfs 2>&1
echo "*** unmount"
- umount -d $LOOP_MNT > /dev/null 2>&1
+ umount $LOOP_MNT > /dev/null 2>&1
# Large grows takes forever to check..
if [ "$check" -gt "0" ]
-d name=$LOOP_DEV,size=${i}g |grep log
mount -o loop -t xfs $LOOP_DEV $LOOP_MNT
echo "test write" > $LOOP_MNT/test
- umount -d $LOOP_MNT > /dev/null 2>&1
+ umount $LOOP_MNT > /dev/null 2>&1
done
}
# make large holey file
-d name=$LOOP_DEV,size=${i}g |grep log
mount -o loop -t xfs $LOOP_DEV $LOOP_MNT
echo "test write" > $LOOP_MNT/test
- umount -d $LOOP_MNT > /dev/null 2>&1
+ umount $LOOP_MNT > /dev/null 2>&1
# punch out the previous blocks so that we keep the amount of
# disk space the test requires down to a minimum.
_cleanup()
{
cd /
- umount -d $LOOP_MNT 2>/dev/null
+ umount $LOOP_MNT 2>/dev/null
rm -f $LOOP_DEV
rmdir $LOOP_MNT
}
xfs_io -f -c "resvsp 0 $fsize" $LOOP_MNT/foo | _filter_io
echo "*** unmount loop filesystem"
- umount -d $LOOP_MNT > /dev/null 2>&1
+ umount $LOOP_MNT > /dev/null 2>&1
echo "*** check loop filesystem"
_check_xfs_filesystem $LOOP_DEV none none