svn commit: r326965 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Tue Dec 19 09:47:18 UTC 2017
Author: pho
Date: Tue Dec 19 09:47:16 2017
New Revision: 326965
URL: https://svnweb.freebsd.org/changeset/base/326965
Log:
Kill verbose console logging and added a file system check.
Sponsored by: Dell EMC Isilon
Modified:
user/pho/stress2/misc/graid1.sh
Modified: user/pho/stress2/misc/graid1.sh
==============================================================================
--- user/pho/stress2/misc/graid1.sh Tue Dec 19 04:13:22 2017 (r326964)
+++ user/pho/stress2/misc/graid1.sh Tue Dec 19 09:47:16 2017 (r326965)
@@ -49,6 +49,9 @@ for u in $md1 $md2 $md3; do
done
gmirror load > /dev/null 2>&1 && unload=1
+old=`sysctl -n kern.geom.mirror.debug`
+sysctl kern.geom.mirror.debug=-1 | grep -q -- -1 ||
+ sysctl kern.geom.mirror.debug=$old > /dev/null
gmirror label -v -b split -s 2048 data /dev/md$md1 /dev/md$md2 \
/dev/md$md3 > /dev/null || exit 1
[ -c /dev/mirror/data ] || exit 1
@@ -63,7 +66,8 @@ su $testuser -c 'cd ..; ./run.sh marcus.cfg'
while mount | grep $mntpoint | grep -q /mirror/; do
umount $mntpoint || sleep 1
done
-gmirror stop data || s=1
+checkfs /dev/mirror/data || s=1
+gmirror stop data || s=2
gmirror destroy data 2>/dev/null
[ $unload ] && gmirror unload
More information about the svn-src-user
mailing list