stress2: Remove the memory disk after the fsck, not before

This commit is contained in:
Peter Holm 2022-03-18 07:28:58 +01:00
parent 3ebe110934
commit bfdcd042bc

View file

@ -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