mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-03 23:28:58 +00:00
stress2: Remove the memory disk after the fsck, not before
This commit is contained in:
parent
3ebe110934
commit
bfdcd042bc
|
@ -86,10 +86,11 @@ for i in `jot $mounts $start`; do
|
|||
mntpoint=${prefix}$i
|
||||
n=0
|
||||
while mount | grep -q "on $mntpoint "; do
|
||||
umount $mntpoint && mdconfig -d -u $mdstart || sleep 1
|
||||
umount $mntpoint || sleep 1
|
||||
n=$((n += 1))
|
||||
[ $n -gt 60 ] && exit 1
|
||||
done
|
||||
checkfs /dev/md${mdstart}$part || s=$?
|
||||
mdconfig -d -u $mdstart
|
||||
done
|
||||
exit $s
|
||||
|
|
Loading…
Reference in a new issue