Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 May 2023 08:35:11 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: 273a89bb14f3 - main - stress2: Tune to get more slightly broken file systems
Message-ID:  <202305270835.34R8ZBgX041919@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=273a89bb14f37c17b1aefa5bc80e559bd785d0ed

commit 273a89bb14f37c17b1aefa5bc80e559bd785d0ed
Author:     Peter Holm <pho@FreeBSD.org>
AuthorDate: 2023-05-27 08:31:44 +0000
Commit:     Peter Holm <pho@FreeBSD.org>
CommitDate: 2023-05-27 08:31:44 +0000

    stress2: Tune to get more slightly broken file systems
---
 tools/test/stress2/tools/flip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/test/stress2/tools/flip.c b/tools/test/stress2/tools/flip.c
index e1f12e97a79c..cdc2742de59f 100644
--- a/tools/test/stress2/tools/flip.c
+++ b/tools/test/stress2/tools/flip.c
@@ -131,7 +131,7 @@ main(int argc, char *argv[])
 			err(1, "lseek()");
 		if (read(fd, &c, 1) != 1)
 			err(1, "read()");
-		if (arc4random() % 100 < 80)
+		if (arc4random() % 100 < 98)
 			flip(&c, 1);
 		else
 			trash(&c);



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