svn commit: r279629 - user/pho/stress2/misc

Peter Holm pho at FreeBSD.org
Thu Mar 5 08:51:28 UTC 2015


Author: pho
Date: Thu Mar  5 08:51:27 2015
New Revision: 279629
URL: https://svnweb.freebsd.org/changeset/base/279629

Log:
  Look for the right mount point.
  
  Sponsored by:	 EMC / Isilon storage division

Modified:
  user/pho/stress2/misc/pfl2.sh

Modified: user/pho/stress2/misc/pfl2.sh
==============================================================================
--- user/pho/stress2/misc/pfl2.sh	Thu Mar  5 08:49:38 2015	(r279628)
+++ user/pho/stress2/misc/pfl2.sh	Thu Mar  5 08:51:27 2015	(r279629)
@@ -43,7 +43,7 @@ md1=$mdstart
 md2=$((mdstart + 1))
 
 opt=$([ $((`date '+%s'` % 2)) -eq 0 ] && echo "-j" || echo "-U")
-mount | grep $mp1 | grep -q /dev/md && umount -f $mp1
+mount | grep "on $mp1 " | grep -q /dev/md && umount -f $mp1
 mdconfig -l | grep -q md$md1 &&  mdconfig -d -u $md1
 mdconfig -a -t swap -s 2g -u $md1
 bsdlabel -w md$md1 auto
@@ -51,7 +51,7 @@ newfs $opt md${md1}$part > /dev/null
 mount /dev/md${md1}$part $mp1
 chmod 777 $mp1
 
-mount | grep $mp2 | grep -q /dev/md && umount -f $mp2
+mount | grep "on $mp2 " | grep -q /dev/md && umount -f $mp2
 mdconfig -l | grep -q md$md2 &&  mdconfig -d -u $md2
 mdconfig -a -t swap -s 2g -u $md2
 bsdlabel -w md$md2 auto


More information about the svn-src-user mailing list