]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
repair: validate ir_count field for sparse format records
authorBrian Foster <bfoster@redhat.com>
Tue, 23 Jun 2015 05:08:47 +0000 (15:08 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 23 Jun 2015 05:08:47 +0000 (15:08 +1000)
commit9fa86a861c36f5a39972b977aaaed66b36650571
treeffc67e9499bc0a1288962e447b9bb8810defbf0e
parent170383b993bb303858241134ee07ffeffb8b7263
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