diff options
Diffstat (limited to 'tools/test/stress2/misc/unionfs5.sh')
-rwxr-xr-x | tools/test/stress2/misc/unionfs5.sh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tools/test/stress2/misc/unionfs5.sh b/tools/test/stress2/misc/unionfs5.sh index 5e12ffbf5abd..a45ffde5c0b2 100755 --- a/tools/test/stress2/misc/unionfs5.sh +++ b/tools/test/stress2/misc/unionfs5.sh @@ -1,7 +1,7 @@ #!/bin/sh # -# SPDX-License-Identifier: BSD-2-Clause-FreeBSD +# SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2021 Peter Holm # @@ -50,8 +50,8 @@ for i in $md1 $md2; do mdconfig -l | grep -q md$i && mdconfig -d -u $i done -mdconfig -a -t swap -s 2g -u $md1 -mdconfig -a -t swap -s 2g -u $md2 +mdconfig -a -t swap -s 5g -u $md1 +mdconfig -a -t swap -s 5g -u $md2 newfs $newfs_flags -n md$md1 > /dev/null newfs $newfs_flags -n md$md2 > /dev/null mount /dev/md$md1 $mp1 @@ -68,11 +68,12 @@ else echo "Using FFS" export RUNDIR=$mp1/stressX fi -export runRUNTIME=2m +export CTRLDIR=$mp2/stressX.control +export runRUNTIME=2m -(cd ../testcases/mkdir; ./mkdir -t 2m -i 20) +(cd ../testcases/mkdir; ./mkdir -t 2m -i 20 -l 100) -find $RUNDIR -ls | head -5 +find $RUNDIR -ls | grep -v 'stressX$' | head -5 while mount | grep -Eq "on $mp2 .*unionfs"; do umount $mp2 && break sleep 5 |