diff options
Diffstat (limited to 'tools/test/stress2/misc/suj31.sh')
-rwxr-xr-x | tools/test/stress2/misc/suj31.sh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/test/stress2/misc/suj31.sh b/tools/test/stress2/misc/suj31.sh index e875d1f94076..f9facc779363 100755 --- a/tools/test/stress2/misc/suj31.sh +++ b/tools/test/stress2/misc/suj31.sh @@ -40,9 +40,8 @@ mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart mdconfig -a -t swap -s 2g -u $mdstart || exit 1 -bsdlabel -w md$mdstart auto -newfs -U md${mdstart}$part > /dev/null -mount /dev/md${mdstart}$part $mntpoint +newfs -U md$mdstart > /dev/null +mount /dev/md$mdstart $mntpoint chmod 777 $mntpoint export runRUNTIME=10m @@ -52,14 +51,14 @@ while mount | grep $mntpoint | grep -q /dev/md; do umount $mntpoint || sleep 1 done -tunefs -j enable /dev/md${mdstart}$part -mount /dev/md${mdstart}$part $mntpoint +tunefs -j enable /dev/md$mdstart +mount /dev/md$mdstart $mntpoint chmod 777 $mntpoint su $testuser -c 'cd ..; ./run.sh marcus.cfg' > /dev/null 2>&1 while mount | grep $mntpoint | grep -q /dev/md; do umount $mntpoint || sleep 1 done -checkfs /dev/md${mdstart}$part; s=$? +checkfs /dev/md$mdstart; s=$? mdconfig -d -u $mdstart exit $s |