xfs: test file/symlink metadata corruption checking and repair

Targeted fuzzing tests which destroy various pieces of file and
symlink metadata; the tests look for (a) kernel detection of
corruption, (b) xfs_repair repair of said corruption, and (c)
post-repair fs usability.

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 13:06:11 +10:00
committed by Dave Chinner
parent c8e6dbc881
commit fd6df1ff82
13 changed files with 772 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
QA output created by 123
+ create scratch fs
+ mount fs image
+ make some files
file contents: moo
+ check fs
+ corrupt image
+ mount image
+ repair fs
+ mount image (2)
+ check fs (2)