]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs: refactor filesystem feature detection logic
authorDarrick J. Wong <djwong@kernel.org>
Fri, 28 Oct 2022 17:41:53 +0000 (10:41 -0700)
committerZorro Lang <zlang@kernel.org>
Sun, 30 Oct 2022 10:39:20 +0000 (18:39 +0800)
commit3cfd47b936e9f6453fc5ca35718bcf1f839b4c18
tree5f1791c9b52a30b90d7dddded758b46a81722b8c
parent65f937954f5eb9c4bdd2d40124d8cc938d878325
xfs: refactor filesystem feature detection logic

There are a lot of places where we open-code detecting features of a
specific filesystem.  Refactor this into a couple of helpers in
preparation for adding stress tests for online repair and fuzzing.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/populate
common/rc
common/xfs
tests/xfs/097
tests/xfs/151
tests/xfs/271
tests/xfs/307
tests/xfs/308
tests/xfs/348