ext4: test file/dir/symlink metadata corruption checking and repair

Targeted fuzzing tests which destroy various pieces of file,
directory, and symlink metadata; the tests look for (a) kernel
detection of corruption, (b) e2fsck 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:13:50 +10:00
committed by Dave Chinner
parent e953517639
commit fc4dd61688
15 changed files with 836 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
QA output created by 019
+ 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)