aboutsummaryrefslogtreecommitdiff
path: root/tools/test/stress2/misc/snap10.sh
diff options
context:
space:
mode:
authorPeter Holm <pho@FreeBSD.org>2022-06-17 03:42:52 +0000
committerPeter Holm <pho@FreeBSD.org>2022-06-17 03:42:52 +0000
commit608c97bff921c8936eb71f4b1a177625cfa60250 (patch)
tree578818fd7e78270e55bc67fe7131e640b6a69cdc /tools/test/stress2/misc/snap10.sh
parentc692ea4026598b6869393c8379ba941348e74cbe (diff)
downloadsrc-608c97bff921c8936eb71f4b1a177625cfa60250.tar.gz
src-608c97bff921c8936eb71f4b1a177625cfa60250.zip
Diffstat (limited to 'tools/test/stress2/misc/snap10.sh')
-rwxr-xr-xtools/test/stress2/misc/snap10.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/test/stress2/misc/snap10.sh b/tools/test/stress2/misc/snap10.sh
index 53fba0ee652d..69d5ddd0bfdc 100755
--- a/tools/test/stress2/misc/snap10.sh
+++ b/tools/test/stress2/misc/snap10.sh
@@ -40,9 +40,8 @@ log=/tmp/snap10.log
mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint
[ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
mdconfig -a -t swap -s 512m -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
while ! mksnap_ffs $mntpoint $mntpoint/.snap/stress2; do :; done