summaryrefslogtreecommitdiff
path: root/volumes.h
diff options
context:
space:
mode:
authorYan Zheng <zheng.yan@oracle.com>2008-12-05 12:21:31 -0500
committerChris Mason <chris.mason@oracle.com>2008-12-05 12:21:31 -0500
commit5ccd1715fa2eaad0b26037bb53706779c8c93b5f (patch)
tree3957b56e7b0d7d494c952829ff926df8c24377f6 /volumes.h
parentd79f499eae6671a04e80b5a3081fae8e2a311b54 (diff)
superblock duplication
This patch updates btrfs-progs for superblock duplication. Note: I didn't make this patch as complete as the one for kernel since updating the converter requires changing the code again. Thank you, Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Diffstat (limited to 'volumes.h')
-rw-r--r--volumes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/volumes.h b/volumes.h
index ad8cfaf3..bb787517 100644
--- a/volumes.h
+++ b/volumes.h
@@ -99,6 +99,9 @@ int btrfs_alloc_dev_extent(struct btrfs_trans_handle *trans,
int btrfs_map_block(struct btrfs_mapping_tree *map_tree, int rw,
u64 logical, u64 *length,
struct btrfs_multi_bio **multi_ret, int mirror_num);
+int btrfs_rmap_block(struct btrfs_mapping_tree *map_tree,
+ u64 chunk_start, u64 physical, u64 devid,
+ u64 **logical, int *naddrs, int *stripe_len);
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,