aboutsummaryrefslogtreecommitdiff
path: root/tools/test/stress2/misc/ffs_blkfree.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test/stress2/misc/ffs_blkfree.sh')
-rwxr-xr-xtools/test/stress2/misc/ffs_blkfree.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/tools/test/stress2/misc/ffs_blkfree.sh b/tools/test/stress2/misc/ffs_blkfree.sh
index 5ea4828429c3..a71a979857ed 100755
--- a/tools/test/stress2/misc/ffs_blkfree.sh
+++ b/tools/test/stress2/misc/ffs_blkfree.sh
@@ -35,14 +35,13 @@ DUMP=$RUNDIR/dump
trap "rm -f $D" EXIT INT
dd if=/dev/zero of=$D bs=1m count=1024 status=none || exit 1
-mount | grep "$mntpoint" | grep md${mdstart}$part > /dev/null &&
+mount | grep "$mntpoint" | grep md$mdstart > /dev/null &&
umount $mntpoint
mdconfig -l | grep md$mdstart > /dev/null && mdconfig -d -u $mdstart
mdconfig -a -t vnode -f $D -u $mdstart
-bsdlabel -w md$mdstart auto
-newfs $newfs_flags md${mdstart}$part > /dev/null
-mount /dev/md${mdstart}$part $mntpoint
+newfs $newfs_flags md$mdstart > /dev/null
+mount /dev/md$mdstart $mntpoint
mount
for i in `jot 10`; do
@@ -52,7 +51,7 @@ for i in `jot 10`; do
done
done
-dump -L0a -f $DUMP /dev/md${mdstart}$part
+dump -L0a -f $DUMP /dev/md$mdstart
ls -lf $DUMP
@@ -62,8 +61,8 @@ while mount | grep -q $mntpoint; do
done
for i in `jot 10`; do
- newfs $newfs_flags -n md${mdstart}$part > /dev/null
- mount /dev/md${mdstart}$part $mntpoint
+ newfs $newfs_flags -n md$mdstart > /dev/null
+ mount /dev/md$mdstart $mntpoint
(cd $mntpoint; restore -rf $DUMP)
rm -rf $mntpoint/*
while mount | grep -q $mntpoint; do