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

Peter Holm pho at FreeBSD.org
Fri Sep 9 10:04:39 UTC 2016


Author: pho
Date: Fri Sep  9 10:04:38 2016
New Revision: 305658
URL: https://svnweb.freebsd.org/changeset/base/305658

Log:
  Check for umount(8) failure.
  Added missing mdconfig(8) cleanup.
  
  Sponsored by:	Dell EMC Isilon

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

Modified: user/pho/stress2/misc/pread.sh
==============================================================================
--- user/pho/stress2/misc/pread.sh	Fri Sep  9 10:00:40 2016	(r305657)
+++ user/pho/stress2/misc/pread.sh	Fri Sep  9 10:04:38 2016	(r305658)
@@ -50,7 +50,9 @@ mount -t tmpfs tmpfs $mntpoint
 cp -a /usr/include $mntpoint
 echo "Testing tmpfs(5)"
 /tmp/pread $mntpoint
-umount $mntpoint
+while mount | grep -q "on $mntpoint "; do
+	umount $mntpoint || sleep 1
+done
 
 echo "Testing fdescfs(5)"
 mount -t fdescfs null /dev/fd
@@ -69,7 +71,6 @@ while mount | grep -q "on $mntpoint "; d
 	umount $mntpoint || sleep 1
 done
 
-mdconfig -l | grep -q md$mdstart &&  mdconfig -d -u $mdstart
 mdconfig -a -t swap -s 1g -u $mdstart || exit 1
 bsdlabel -w md$mdstart auto
 newfs $newfs_flags md${mdstart}$part > /dev/null
@@ -80,6 +81,7 @@ echo "Testing FFS"
 while mount | grep -q "on $mntpoint "; do
 	umount $mntpoint || sleep 1
 done
+mdconfig -d -u $mdstart
 
 mount -t nullfs /bin $mntpoint
 echo "Testing nullfs(5)"


More information about the svn-src-user mailing list