]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/629: single extent files should be within tolerance
authorDave Chinner <dchinner@redhat.com>
Tue, 26 Nov 2024 23:34:27 +0000 (10:34 +1100)
committerZorro Lang <zlang@kernel.org>
Sun, 8 Dec 2024 14:17:10 +0000 (22:17 +0800)
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>
Reviewed-by: Zorro lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/629

index 34b3ca0d634346f7d54775be42e763720c5de0bc..a2f345571ca3e648891ce034fbb8c8d2e74ddb15 100755 (executable)
@@ -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