diff mbox series

[34/40] xfs/629: single extent files should be within tolerance

Message ID 20241127045403.3665299-35-david@fromorbit.com (mailing list archive)
State New
Headers show
Series fstests: concurrent test execution | expand

Commit Message

Dave Chinner Nov. 27, 2024, 4:52 a.m. UTC
From: Dave Chinner <dchinner@redhat.com>

The test passes if we have between 2 and 40 extents (despite what
the comment says!), with the target being 20. There is absolutely no
reason for considering a single extent file a failure - that
indicates the filesystem completely defeated the fragmentation
behaviour the test was trying to cause.  Hence expand the range of
"test pass" tolerance to 1-41 extents.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
 tests/xfs/629 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/tests/xfs/629 b/tests/xfs/629
index 34b3ca0d6..a2f345571 100755
--- a/tests/xfs/629
+++ b/tests/xfs/629
@@ -59,8 +59,8 @@  _scratch_sync
 
 for ((n=0; n<nfiles; n++)); do
 	count=$(_count_extents $workfile.$n)
-	# Acceptible extent count range is 1-40
-	_within_tolerance "file.$n extent count" $count 21 19 -v
+	# Acceptible extent count range is 1-41
+	_within_tolerance "file.$n extent count" $count 21 20 -v
 done
 
 status=0