path: root/disk-io.h
diff options
authorJosef Bacik <>2008-12-02 09:58:23 -0500
committerChris Mason <>2008-12-02 09:58:23 -0500
commit1148e55804c814094dd86fe9651eface01b745b4 (patch)
treebd05668325535d77f0fded51fbed459026e7f73a /disk-io.h
parent76b8244a7a8214819eb7cfb7b8ffc3bf26b70642 (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 <>
Diffstat (limited to 'disk-io.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/disk-io.h b/disk-io.h
index 098f9e33..5b827e4f 100644
--- a/disk-io.h
+++ b/disk-io.h
@@ -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);