svn commit: r258984 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Thu Dec 5 14:45:39 UTC 2013
Author: pho
Date: Thu Dec 5 14:45:39 2013
New Revision: 258984
URL: http://svnweb.freebsd.org/changeset/base/258984
Log:
Use newfs_flags for newfs(8) and clean up shell script.
Sponsored by: EMC / Isilon storage division
Modified:
user/pho/stress2/misc/nullfs12.sh
Modified: user/pho/stress2/misc/nullfs12.sh
==============================================================================
--- user/pho/stress2/misc/nullfs12.sh Thu Dec 5 14:43:46 2013 (r258983)
+++ user/pho/stress2/misc/nullfs12.sh Thu Dec 5 14:45:39 2013 (r258984)
@@ -36,15 +36,15 @@
. ../default.cfg
-mnt2=/mnt2
+mnt2=${mntpoint}2
mount | grep -q $mnt2 && umount $mnt2
[ -d $mnt2 ] || mkdir $mnt2
-mount | grep $mnt2 | grep -q /dev/md && umount -f $mnt2
+mount | grep $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
bsdlabel -w md$mdstart auto
-newfs -U md${mdstart}$part > /dev/null
+newfs $newfs_flags md${mdstart}$part > /dev/null
mount /dev/md${mdstart}$part $mntpoint
chmod 777 $mntpoint
mount -t nullfs $mntpoint $mnt2
More information about the svn-src-user
mailing list