]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: add helper for verifying checksums on xfs_bufs
authorDave Chinner <dchinner@redhat.com>
Thu, 6 Mar 2014 23:25:33 +0000 (10:25 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 6 Mar 2014 23:25:33 +0000 (10:25 +1100)
commitd21ca64d14f179e5f0b985fa0843ba6803cf057f
tree904c472ff903b1113b999ed67998c33d9a386a59
parent3faddc547f5fa87199f6bd50945f616e6e1f5cac
libxfs: add helper for verifying checksums on xfs_bufs

[userspace port]

Many/most callers of xfs_verify_cksum() pass bp->b_addr and
BBTOB(bp->b_length) as the first 2 args.  Add a helper
which can just accept the bp and the crc offset, and work
it out on its own, for brevity.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
12 files changed:
include/libxfs.h
libxfs/xfs_alloc.c
libxfs/xfs_attr_leaf.c
libxfs/xfs_btree.c
libxfs/xfs_da_btree.c
libxfs/xfs_dir2_block.c
libxfs/xfs_dir2_data.c
libxfs/xfs_dir2_leaf.c
libxfs/xfs_dir2_node.c
libxfs/xfs_ialloc.c
libxfs/xfs_sb.c
libxfs/xfs_symlink_remote.c