git: 0977ebb07152 - main - stress2: A unmount of a unionfs file system may return EBUSY.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 15 Mar 2022 09:25:08 UTC
The branch main has been updated by pho: URL: https://cgit.FreeBSD.org/src/commit/?id=0977ebb07152199f27174177a3640ee7264ca592 commit 0977ebb07152199f27174177a3640ee7264ca592 Author: Peter Holm <pho@FreeBSD.org> AuthorDate: 2022-03-15 09:24:55 +0000 Commit: Peter Holm <pho@FreeBSD.org> 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; }