From fd2d0af0bf80c127fbb3b84817a420fbc490da5d Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Wed, 9 Apr 2008 16:28:12 -0400 Subject: Retry metadata reads in the face of checksum failures --- volumes.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'volumes.h') diff --git a/volumes.h b/volumes.h index 9928c1f9..be543163 100644 --- a/volumes.h +++ b/volumes.h @@ -85,7 +85,7 @@ int btrfs_alloc_dev_extent(struct btrfs_trans_handle *trans, u64 owner, u64 num_bytes, u64 *start); int btrfs_map_block(struct btrfs_mapping_tree *map_tree, int rw, u64 logical, u64 *length, - struct btrfs_multi_bio **multi_ret); + struct btrfs_multi_bio **multi_ret, int mirror_num); int btrfs_read_sys_array(struct btrfs_root *root); int btrfs_read_chunk_tree(struct btrfs_root *root); int btrfs_alloc_chunk(struct btrfs_trans_handle *trans, @@ -104,4 +104,5 @@ int btrfs_add_device(struct btrfs_trans_handle *trans, int btrfs_scan_one_device(int fd, const char *path, struct btrfs_fs_devices **fs_devices_ret, u64 *total_devs, u64 super_offset); +int btrfs_num_copies(struct btrfs_mapping_tree *map_tree, u64 logical, u64 len); #endif -- cgit v1.2.3