]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs: improve metadata array field handling when fuzzing
authorDarrick J. Wong <djwong@kernel.org>
Fri, 30 Dec 2022 22:19:42 +0000 (14:19 -0800)
committerZorro Lang <zlang@kernel.org>
Sat, 25 Feb 2023 13:14:28 +0000 (21:14 +0800)
commit6b5b9b1e6fc28099c66b63d8bccb1f0049736343
tree3a3ce0ee6e864d0d351f8a0d143fe0df666b7db2
parent8dfdfd75ea7e37cc40a5302248f7136e7b8d21b6
xfs: improve metadata array field handling when fuzzing

Currently, we use some gnarly regular expressions to try to constrain
the amount of time we spend fuzzing each element of a metadata array.
This is pretty inflexible (and buggy) since we limit some arrays
(e.g. dir hashes) to the first ten elements and other arrays (e.g.
extent mappings) that use compact index ranges to the first one.

Replace this whole weird mess with logic that can tease out the array
indices, unroll the compact indices if needed, and give the user more
flexible control over which array elements get used.

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/fuzzy