Date: Fri, 9 Sep 2016 10:04:38 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r305658 - user/pho/stress2/misc Message-ID: <201609091004.u89A4cR2018863@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609091004.u89A4cR2018863>