fuzz: randomly fuzz XFS and ext4 filesystems
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 21 Sep 2015 02:03:39 +0000 (12:03 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 21 Sep 2015 02:03:39 +0000 (12:03 +1000)
commitbf16cde85400886d4e637bcd001dd6e61bce5839
tree4e663da0799d00c24a1ec3c503b093bebde6a389
parent6b563089480731a0faa852c041e95753f1727fa5
fuzz: randomly fuzz XFS and ext4 filesystems

Introduce tests for XFS and ext4 which format a filesystem, populate
it, then uses blocktrash and e2fuzz to corrupt the metadata.  The FS
is remounted, modified, and unmounted.  Following that, xfs_repair or
e2fsck are run until it no longer finds errors to correct, after which
the FS is mounted yet again and exercised to see if there are any
errors remaining.

The XFS test requires an xfs_db that can handle blocktrash and v5
filesystems.

The ext4 test requires metadata_csum support in e2fsprogs.

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>
tests/ext4/006 [new file with mode: 0755]
tests/ext4/006.out [new file with mode: 0644]
tests/ext4/group
tests/xfs/083 [new file with mode: 0755]
tests/xfs/083.out [new file with mode: 0644]
tests/xfs/group