]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
repair: do not account sparse inodes in phase 5 cursor init.
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)
commit62531d733b58011e911946fd5d2d18a517d6502b
tree23863bbc8a28ed053ba44ccddebe5c94ed28ffe1
parent37c2fcf0c8042f07d112f18bf46561d2f0a823b1
repair: do not account sparse inodes in phase 5 cursor init.

The inode btrees are reconstructed in phase 5 of xfs_repair. The btree
cursor initialization counts the allocated and free inodes in the
in-core records and calculates the expected geometry of the resulting
btree. The free and total inode counts for each AG are also ultimately
aggregated to update the associated superblock counts.

Update init_ino_cursor() to not assume 64 inode records and not account
sparse inodes into the total or free inode count for each AG.

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