Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Dec 2013 14:45:39 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r258984 - user/pho/stress2/misc
Message-ID:  <201312051445.rB5EjdPI055632@svn.freebsd.org>

index | next in thread | raw e-mail

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


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312051445.rB5EjdPI055632>