]> www.infradead.org Git - users/hch/xfsprogs.git/commit
repair: validate ir_count field for sparse format records
authorBrian Foster <bfoster@redhat.com>
Thu, 30 Jul 2015 23:18:22 +0000 (09:18 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 30 Jul 2015 23:18:22 +0000 (09:18 +1000)
commit4a7d3215d2b51f1e1ed24f841b5192f5ebf7b9a8
treed23f97eabd20dfe36aecbcc83c4ba23eb4fb8001
parent3f05ceae2a46c45d49b3cf2a6ec24a958802064f
repair: validate ir_count field for sparse format records

Sparse format inobt records contain an additional count field that
records the number of physical inodes tracked by the record. Verify the
count is internally consistent according to the holemask, similar to how
freecount is validated against the free mask.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/scan.c