summaryrefslogtreecommitdiff
path: root/volumes.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-04-03 16:35:48 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2008-04-03 16:35:48 -0400
commita6de0bd778475504f42a142c83b8077993cbddfe (patch)
tree372c0634becbcd2c233e08d355e130c60de9cc58 /volumes.h
parent6a87b4c00a08e377ee6265dee6c2548d2d0f67b0 (diff)
Add mirroring support across multiple drives
Diffstat (limited to 'volumes.h')
-rw-r--r--volumes.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/volumes.h b/volumes.h
index ae9e7bb7..a51cfe54 100644
--- a/volumes.h
+++ b/volumes.h
@@ -22,6 +22,8 @@ struct btrfs_device {
struct list_head dev_list;
struct btrfs_root *dev_root;
+ u64 total_ios;
+
int fd;
char *name;
@@ -67,9 +69,9 @@ struct btrfs_fs_devices {
int btrfs_alloc_dev_extent(struct btrfs_trans_handle *trans,
struct btrfs_device *device,
u64 owner, u64 num_bytes, u64 *start);
-int btrfs_map_block(struct btrfs_mapping_tree *map_tree,
+int btrfs_map_block(struct btrfs_mapping_tree *map_tree, int rw, int stripe_nr,
u64 logical, u64 *phys, u64 *length,
- struct btrfs_device **dev);
+ struct btrfs_device **dev, int *total_stripes);
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,