diff options
author | Josef Bacik <jbacik@redhat.com> | 2008-12-02 09:58:23 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-12-02 09:58:23 -0500 |
commit | 1148e55804c814094dd86fe9651eface01b745b4 (patch) | |
tree | bd05668325535d77f0fded51fbed459026e7f73a /disk-io.h | |
parent | 76b8244a7a8214819eb7cfb7b8ffc3bf26b70642 (diff) |
btrfs-progs: support for different csum algorithims
This is the btrfs-progs version of the patch to add the ability to have
different csum algorithims. Note I didn't change the image maker since it
seemed a bit more complicated than just changing some stuff around so I will let
Yan take care of that.
Everything else was converted and for now a mkfs just
sets the type to be BTRFS_CSUM_TYPE_CRC32.
Signed-off-by: Josef Bacik <jbacik@redhat.com>
Diffstat (limited to 'disk-io.h')
-rw-r--r-- | disk-io.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -56,6 +56,8 @@ void btrfs_csum_final(u32 crc, char *result); int btrfs_commit_transaction(struct btrfs_trans_handle *trans, struct btrfs_root *root); int btrfs_open_device(struct btrfs_device *dev); +int csum_tree_block_size(struct extent_buffer *buf, u16 csum_sectorsize, + int verify); int csum_tree_block(struct btrfs_root *root, struct extent_buffer *buf, int verify); int btrfs_read_buffer(struct extent_buffer *buf, u64 parent_transid); |