The branch main has been updated by pho:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=0977ebb07152199f27174177a3640ee7264ca592

commit 0977ebb07152199f27174177a3640ee7264ca592
Author:     Peter Holm <[email protected]>
AuthorDate: 2022-03-15 09:24:55 +0000
Commit:     Peter Holm <[email protected]>
CommitDate: 2022-03-15 09:24:55 +0000

    stress2: A unmount of a unionfs file system may return EBUSY.
---
 tools/test/stress2/misc/unionfs7.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tools/test/stress2/misc/unionfs7.sh 
b/tools/test/stress2/misc/unionfs7.sh
index 58fad6183517..ad4514c60532 100755
--- a/tools/test/stress2/misc/unionfs7.sh
+++ b/tools/test/stress2/misc/unionfs7.sh
@@ -93,7 +93,10 @@ chmod 777 $mp2
 su $testuser -c \
        "(cd $mp2/stress2; ./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; }

Reply via email to