xfs/010: test repair for finobt corruption
authorBrian Foster <bfoster@redhat.com>
Tue, 13 May 2014 05:27:47 +0000 (15:27 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 13 May 2014 05:27:47 +0000 (15:27 +1000)
commitd95ecb03548060b50905cdf2716bdc05c6eea22a
tree39aabcfd0cdf1fc08f7c2cc8e2fb29b5b90bbd7b
parent01fbf447cc8981475e49c0f12e8787e063de8d50
xfs/010: test repair for finobt corruption

The finobt creates a duplicate subset of inode allocation metadata from
the inobt. xfs_repair should detect and repair inconsistencies in the
finobt that could be caused by bugs or corruption. This test uses xfs_db
to cause targeted corruptions in the finobt and verify repair detects
and corrects the filesystem.

In particular, the test corrupts individual finobt records to cause
inconsistency between the inode allocation count fields as well as
causing the finobt to contain a record with no free inodes.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/xfs/010 [new file with mode: 0755]
tests/xfs/010.out [new file with mode: 0644]
tests/xfs/group