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

Peter Holm pho at FreeBSD.org
Thu Aug 22 06:30:07 UTC 2013


Author: pho
Date: Thu Aug 22 06:30:06 2013
New Revision: 254645
URL: http://svnweb.freebsd.org/changeset/base/254645

Log:
  Fix typo and add check for allocated memory disk before deleting it.
  
  Sponsored by:	EMC / Isilon storage division

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

Modified: user/pho/stress2/misc/rename8.sh
==============================================================================
--- user/pho/stress2/misc/rename8.sh	Thu Aug 22 06:28:52 2013	(r254644)
+++ user/pho/stress2/misc/rename8.sh	Thu Aug 22 06:30:06 2013	(r254645)
@@ -30,7 +30,7 @@
 
 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
 
-# Cache inconsistancy seen on "to" file for rename(2).
+# Cache inconsistency seen on "to" file for rename(2).
 
 # Scenario by jhb@
 
@@ -65,7 +65,8 @@ if mount | grep -q md${mdstart}$part; th
         exit 1
 fi
 
-mdconfig -d -u $mdstart
+mdconfig -l | grep -q md$mdstart &&
+	mdconfig -d -u $mdstart
 rm -f /tmp/rename8
 exit
 EOF


More information about the svn-src-user mailing list