Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Aug 2025 09:56:21 GMT
From:      Peter Holm <pho@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 5b977a8e2b83 - main - stress2: A workaround for an infrequent "filesystem full" issue
Message-ID:  <202508010956.5719uLQX053244@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pho:

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

commit 5b977a8e2b83c8957898840bc4731f8fbf6df7b1
Author:     Peter Holm <pho@FreeBSD.org>
AuthorDate: 2025-08-01 09:55:50 +0000
Commit:     Peter Holm <pho@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202508010956.5719uLQX053244>