xfs: test directory metadata corruption checking and repair

Targeted fuzzing tests which destroy various pieces of directory
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 12:50:36 +10:00
committed by Dave Chinner
parent d492bcd86b
commit c8e6dbc881
15 changed files with 911 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
QA output created by 113
+ create scratch fs
+ mount fs image
+ make some files
+ check fs
+ check dir
+ corrupt dir
+ mount image
+ modify dir
+ repair fs
+ mount image (2)
+ chattr -R -i
+ modify dir (2)
+ check fs (2)