aboutsummaryrefslogtreecommitdiff
path: root/tools/test/stress2/misc/flock.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test/stress2/misc/flock.sh')
-rwxr-xr-xtools/test/stress2/misc/flock.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/test/stress2/misc/flock.sh b/tools/test/stress2/misc/flock.sh
index 451fec4b518a..cbb07e14085d 100755
--- a/tools/test/stress2/misc/flock.sh
+++ b/tools/test/stress2/misc/flock.sh
@@ -53,9 +53,8 @@ cd $odir
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
mdconfig -a -t swap -s 1g -u $mdstart || exit 1
-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
(cd $mntpoint; /tmp/flock)
e=$?