stress2: A unmount of a unionfs file system may return EBUSY.
This commit is contained in:
parent
81e0e7b9e3
commit
9e8fbb95b3
@ -64,7 +64,10 @@ done
|
||||
[ $s ] && echo "Failed in loop #$i"
|
||||
df -i $mp2 | tail -1
|
||||
|
||||
umount $mp2 # The unionfs mount
|
||||
while mount | grep -Eq "on $mp2 .*unionfs"; do
|
||||
umount $mp2 && break
|
||||
sleep 5
|
||||
done
|
||||
umount $mp2
|
||||
umount $mp1
|
||||
mdconfig -d -u $md2
|
||||
|
@ -67,7 +67,10 @@ export runRUNTIME=2m
|
||||
(cd ..; ./run.sh marcus.cfg)
|
||||
|
||||
../tools/killall.sh
|
||||
umount $mp2 # The unionfs mount
|
||||
while mount | grep -Eq "on $mp2 .*unionfs"; do
|
||||
umount $mp2 && break
|
||||
sleep 5
|
||||
done
|
||||
umount $mp2
|
||||
n=`find $mp1/stressX | wc -l`
|
||||
[ $n -eq 1 ] && s=0 || { find $mp1/stressX -ls | head -12; s=1; }
|
||||
|
@ -72,8 +72,11 @@ export runRUNTIME=2m
|
||||
|
||||
(cd ../testcases/mkdir; ./mkdir -t 2m -i 20)
|
||||
|
||||
find $RUNDIR -ls
|
||||
umount $mp2 # The unionfs mount
|
||||
find $RUNDIR -ls | head -5
|
||||
while mount | grep -Eq "on $mp2 .*unionfs"; do
|
||||
umount $mp2 && break
|
||||
sleep 5
|
||||
done
|
||||
umount $mp2
|
||||
n=`find $mp1/stressX | wc -l`
|
||||
[ $n -eq 1 ] && s=0 || s=1
|
||||
|
@ -87,7 +87,10 @@ chmod 777 $mp2
|
||||
su $testuser -c \
|
||||
'(cd ..; ./testcases/run/run $TESTPROGS)'
|
||||
|
||||
umount $mp2 # The unionfs mount
|
||||
while mount | grep -Eq "on $mp2 .*unionfs"; do
|
||||
umount $mp2 && break
|
||||
sleep 5
|
||||
done
|
||||
umount $mp2
|
||||
n=`find $mp1/stressX | wc -l`
|
||||
[ $n -eq 1 ] && s=0 || { find $mp1/stressX -ls | head -12; s=1; }
|
||||
|
Loading…
Reference in New Issue
Block a user