]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
repair: access helpers for on-disk inobt record freecount
authorBrian Foster <bfoster@redhat.com>
Tue, 23 Jun 2015 05:08:48 +0000 (15:08 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 23 Jun 2015 05:08:48 +0000 (15:08 +1000)
commit244e5b498cb2256414752e0f35831ee8a1df8643
treea4725e1f9b4a21cb76afd0127b6d884d7a6597bf
parent1e2689af2a2c694749419d28c0b546a1cd9fc85c
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