The branch main has been updated by pho:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=5b977a8e2b83c8957898840bc4731f8fbf6df7b1

commit 5b977a8e2b83c8957898840bc4731f8fbf6df7b1
Author:     Peter Holm <p...@freebsd.org>
AuthorDate: 2025-08-01 09:55:50 +0000
Commit:     Peter Holm <p...@freebsd.org>
CommitDate: 2025-08-01 09:55:50 +0000

    stress2: A workaround for an infrequent "filesystem full" issue
---
 tools/test/stress2/misc/mmap43.sh | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/tools/test/stress2/misc/mmap43.sh 
b/tools/test/stress2/misc/mmap43.sh
index 98f1de174d54..8508d5865aef 100755
--- a/tools/test/stress2/misc/mmap43.sh
+++ b/tools/test/stress2/misc/mmap43.sh
@@ -10,7 +10,7 @@
 
 set -u
 prog=$(basename "$0" .sh)
-log=/tmp/$prog.log
+log=`dirname $diskimage`/$prog.log
 rm -f $log
 cat > /tmp/$prog.c <<EOF
 #include <sys/mman.h>
@@ -148,7 +148,12 @@ s=0
 start=`date +%s`
 while [ $((`date +%s` - start)) -lt 300 ]; do
        st=`date +%s`
-       cp file.orig file
+       cp file.orig file || {
+               # Workaround for known UFS SU ENOSPC issue
+               echo "Flush file system buffers and retry."
+               (cd $mntpoint; umount $mntpoint) > /dev/null 2>&1 # busy umount
+               cp file.orig file || exit 1
+       }
        for i in `jot $n`; do
                timeout -k 70s 1m /tmp/$prog.sort /dev/zero &
        done

Reply via email to