]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
repair: access helpers for on-disk inobt record freecount
authorBrian Foster <bfoster@redhat.com>
Fri, 31 Jul 2015 01:03:51 +0000 (11:03 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 31 Jul 2015 01:03:51 +0000 (11:03 +1000)
commitac9a3f7376cdf8ab4c09827731c4d51a03a4eac7
tree68dceba03bd73c90e92246fc2348ba9783bcd49c
parent04b21e41be4e04cef16c30ced6d6c5cfb2fec364
repair: access helpers for on-disk inobt record freecount

The on-disk inobt record has two formats depending on whether sparse
inode support is enabled or not. If so, the freecount field is a single
byte and does not require byte-conversion. Otherwise, it is a 4-byte
field and does.

Create the inorec_[get|set]_freecount() helpers to abstract this detail
away from the core repair code.

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