]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_db: enable blocktrash for checksummed filesystems
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 13 Oct 2015 23:24:47 +0000 (10:24 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 13 Oct 2015 23:24:47 +0000 (10:24 +1100)
commitbdc2a208c8759529b84b34f82b1816e383cc9323
treef25b1ad0508f1b907a5924f36cddf6820fd64436
parentbb8aab661792fd1347dd3b340ce4e82b46020b20
xfs_db: enable blocktrash for checksummed filesystems

Disable the write verifiers when we're trashing a block.  With this
in place, create a xfs fuzzer script that formats, populates, corrupts,
tries to use, repairs, and tries again to use a crash test xfs image.
Hopefully this will shake out some v5 filesystem bugs.

This allow trashing of log blocks and symlinks, and require the
caller to explicitly ask for trashing of log blocks and super
blocks.  Allowing log blocks by default skews the trashing heavily
in favor of (probably unused) log blocks, which doesn't help us with
fuzzing.  Furthermore, trashing the superblock results in a time
consuming sector by sector superblock hunt.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
db/check.c