Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Sep 2017 10:24:45 +0000 (UTC)
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r323807 - user/pho/stress2/misc
Message-ID:  <201709201024.v8KAOj5h081373@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pho
Date: Wed Sep 20 10:24:45 2017
New Revision: 323807
URL: https://svnweb.freebsd.org/changeset/base/323807

Log:
  Added problem found. Return fsck status and limit runtime.
  Style fix.
  
  Sponsored by:	Dell EMC Isilon

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

Modified: user/pho/stress2/misc/msdos4.sh
==============================================================================
--- user/pho/stress2/misc/msdos4.sh	Wed Sep 20 10:22:03 2017	(r323806)
+++ user/pho/stress2/misc/msdos4.sh	Wed Sep 20 10:24:45 2017	(r323807)
@@ -32,19 +32,23 @@
 
 # "panic: leaf should be empty" seen
 
+# "panic: Assertion sq->sq_wchan != NULL" seen:
+# https://people.freebsd.org/~pho/stress/log/msdos4.txt
+
 . ../default.cfg
 
 [ -x /sbin/mount_msdosfs ] || exit
-mount | grep "$mntpoint" | grep -q md$mdstart && umount -f ${mntpoint}
-mdconfig -l | grep -q ${mdstart} &&  mdconfig -d -u $mdstart
+log=/tmp/msdos4.sh.log
+mount | grep "$mntpoint" | grep -q md$mdstart && umount -f $mntpoint
+mdconfig -l | grep -q $mdstart &&  mdconfig -d -u $mdstart
 
 mdconfig -a -t swap -s 1g -u $mdstart
-bsdlabel -w md${mdstart} auto
+bsdlabel -w md$mdstart auto
 newfs_msdos /dev/md${mdstart}$part > /dev/null
 mount -t msdosfs /dev/md${mdstart}$part $mntpoint || exit 1
 
 export RUNDIR=$mntpoint/stressX
-export runRUNTIME=20m
+export runRUNTIME=10m
 export TESTPROGS='
 testcases/lockf2/lockf2
 testcases/openat/openat
@@ -62,5 +66,12 @@ testcases/swap/swap
 while mount | grep "$mntpoint" | grep -q md$mdstart; do
 	umount $mntpoint || sleep 1
 done
-fsck -t msdosfs -y /dev/md${mdstart}$part
+fsck -t msdosfs -y /dev/md${mdstart}$part > $log 2>&1
+s=0
+if egrep -q "BAD|INCONSISTENCY|MODIFIED" $log; then
+	cat $log
+	rm $log
+	s=1
+fi
 mdconfig -d -u $mdstart
+exit $s



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709201024.v8KAOj5h081373>