]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/251: skip this test if fstrim geometry detection fails
authorDarrick J. Wong <djwong@kernel.org>
Wed, 21 May 2025 22:42:23 +0000 (15:42 -0700)
committerZorro Lang <zlang@kernel.org>
Fri, 23 May 2025 13:43:29 +0000 (21:43 +0800)
commit34d0c55a92b5b637f49b4b90591c8db29cf396cd
treeee07baf68d61836403eb0b9e16dc51f244a92290
parentc0de6df761000445ddd6134cec29015fef39310d
generic/251: skip this test if fstrim geometry detection fails

There's no reason to wait until fstrim_loop to detect the length
constraints on the FITRIM call since failing to detect any constraints
just leads to _notrun.  Run that stuff from the top level scope so that
we don't start up a bunch of exercisers for no good reason.

Cc: fstests@vger.kernel.org # v2023.10.29
Fixes: 95b0db739400c2 ("generic/251: check min and max length and minlen for FSTRIM")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/251