]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_db: make check work for sparse inodes
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 18 Dec 2015 01:18:08 +0000 (12:18 +1100)
committerDave Chinner <david@fromorbit.com>
Fri, 18 Dec 2015 01:18:08 +0000 (12:18 +1100)
commitbb2f98b78f20f4abbfbbd442162d9f535c84888a
tree72a3e418474ceeecfe74755597d18a1203ef6cc8
parent270dae6c0b41d855729fec73f94f33665bd36349
xfs_db: make check work for sparse inodes

Teach the inobt/finobt scanning functions how to deal with sparse
inode chunks well enough that we can pass the spot-check.  Should
fix the xfs/076 failures.

v2: Put the alignment checks back in, and for each individual chunk
of inodes hanging off an inobt record, parse each chunk separately.
There is no (future) guarantee that all the inodes in a sparse inobt
record will be contiguous.

Cc: Brian Foster <bfoster@redhat.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
db/check.c