mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
d95ecb0354
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>