stress2: Fix cleanup on exit
This commit is contained in:
parent
5184e2da41
commit
79f27053e4
@ -71,5 +71,10 @@ while [ $((`date +%s` - start)) -lt 300 ]; do
|
|||||||
fsck_ffs -fyR /dev/md$mdstart > $log 2>&1; s=$?
|
fsck_ffs -fyR /dev/md$mdstart > $log 2>&1; s=$?
|
||||||
[ $s -ne 0 ] && break
|
[ $s -ne 0 ] && break
|
||||||
done
|
done
|
||||||
[ $s -eq 0 ] && rm -f $diskimage $log || cat $log
|
if [ $s -eq 0 ]; then
|
||||||
|
mdconfig -d -u $mdstart
|
||||||
|
rm -f $diskimage $log
|
||||||
|
else
|
||||||
|
cat $log
|
||||||
|
fi
|
||||||
exit $s
|
exit $s
|
||||||
|
Loading…
Reference in New Issue
Block a user