Date: Thu, 22 Aug 2013 06:30:06 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r254645 - user/pho/stress2/misc Message-ID: <201308220630.r7M6U6Ys086699@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308220630.r7M6U6Ys086699>