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

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



From: Dave Chinner <dchinner@xxxxxxxxxx>

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@xxxxxxxxxx>
---
 tests/xfs/629 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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
-- 
2.45.2





[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux