]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: determine inode size from version number, not struct xfs_dinode
authorDave Chinner <dchinner@redhat.com>
Fri, 7 Jun 2013 00:25:51 +0000 (10:25 +1000)
committerBen Myers <bpm@sgi.com>
Tue, 6 Aug 2013 20:20:16 +0000 (15:20 -0500)
commit9b2e78a0ae24c7db142b8e8cfd79703830e8a2fc
treea64d3a93ee259bfa0f65171add83fa41672f806d
parentc4ce3f1eee7f92d6b3493c77a48f893732d0f6e5
libxfs: determine inode size from version number, not struct xfs_dinode

xfs_db does not use the same structure types as libxfs when checking
inodes, and so cannot determine the size of the inode core by
passing a struct xfs_dinode to a function. We do, however, know the
raw version number, so we can pass that instead. Convert the code to
passing the inode version rather than a structure.

Note that this should probably be converted in the kernel code as
well.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
include/xfs_inode.h
logprint/log_misc.c
logprint/log_print_all.c
repair/phase6.c