aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Holm <pho@FreeBSD.org>2023-04-14 07:55:10 +0000
committerPeter Holm <pho@FreeBSD.org>2023-04-14 07:55:10 +0000
commit0ece3355f63fc79a4afb4bb5e16995230cbf8748 (patch)
tree30c1af5b82a5c169f1e2687a1bda99b15b1ec385
parentb800be978086396e4449525165096d188f4f3527 (diff)
downloadsrc-0ece3355f63fc79a4afb4bb5e16995230cbf8748.tar.gz
src-0ece3355f63fc79a4afb4bb5e16995230cbf8748.zip
stress2: Added comment about a new panic found. Test both SU and SU+J.
-rwxr-xr-xtools/test/stress2/misc/pageout.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/test/stress2/misc/pageout.sh b/tools/test/stress2/misc/pageout.sh
index eafeb22d3417..2df199f9e6dc 100755
--- a/tools/test/stress2/misc/pageout.sh
+++ b/tools/test/stress2/misc/pageout.sh
@@ -33,6 +33,9 @@
# "panic: handle_written_filepage: not started" seen:
# https://people.freebsd.org/~pho/stress/log/pageout-2.txt
+# "panic: ffs_geom_strategy: bad I/O" seen:
+# https://people.freebsd.org/~pho/stress/log/log0434.txt
+
[ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
. ../default.cfg
@@ -49,6 +52,8 @@ mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
mdconfig -a -t swap -s 2g -u $mdstart || exit 1
+[ "$newfs_flags" = "-U" ] && [ `jot -r 1 0 1` -eq 1 ] && newfs_flags="-j"
+[ $# -eq 1 ] && newfs_flags="$1" # or use script argument
newfs $newfs_flags md$mdstart > /dev/null
mount /dev/md$mdstart $mntpoint
@@ -61,8 +66,8 @@ daemon sh -c "(cd ../testcases/swap; ./swap -t 5m -i 20 -l 100 -h)" > /dev/null
(cd /tmp; /tmp/pageout $f1) &
sleep .2
while kill -0 $! 2> /dev/null; do
- mksnap_ffs $mntpoint $mntpoint/.snap/stress2 &&
- rm -f $mntpoint/.snap/stress2
+ rm -f $mntpoint/.snap/stress2
+ mksnap_ffs $mntpoint $mntpoint/.snap/stress2
done
while pgrep -q swap; do
pkill swap