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>
This commit is contained in:
Darrick J. Wong
2015-09-21 12:03:39 +10:00
committed by Dave Chinner
parent 6b56308948
commit bf16cde854
6 changed files with 343 additions and 0 deletions
+1
View File
@@ -80,6 +80,7 @@
080 rw ioctl
081 deprecated # log logprint quota
082 deprecated # log logprint v2log
083 dangerous_fuzzers
084 ioctl rw auto
090 rw auto
092 other auto quick