summaryrefslogtreecommitdiff
path: root/volumes.h
diff options
context:
space:
mode:
authorStefan Behrens <sbehrens@giantdisaster.de>2012-05-07 14:00:20 +0200
committerDavid Sterba <dsterba@suse.cz>2013-01-31 13:47:26 +0100
commit7e08a9116d9d692e0e298197de55b6b5505373bf (patch)
tree14c8e690382a882a699ba48dfb3dc0672d5d6bce /volumes.h
parent5b8826ddfd1c4fcdcfe9f78fd80cfeeac9de1b21 (diff)
Btrfs-progs: add support for device replace procedure
This is the user mode part of the device replace patch series. The command group "btrfs replace" is added with three commands: - btrfs replace start srcdev|srcdevid targetdev [-Bfr] mount_point - btrfs replace status mount_point [-1] - btrfs replace cancel mount_point Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Diffstat (limited to 'volumes.h')
-rw-r--r--volumes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/volumes.h b/volumes.h
index 9ff6182e..9c084061 100644
--- a/volumes.h
+++ b/volumes.h
@@ -182,4 +182,6 @@ int btrfs_add_system_chunk(struct btrfs_trans_handle *trans,
struct btrfs_root *root, struct btrfs_key *key,
struct btrfs_chunk *chunk, int item_size);
int btrfs_chunk_readonly(struct btrfs_root *root, u64 chunk_offset);
+struct btrfs_device *btrfs_find_device_by_devid(struct btrfs_root *root,
+ u64 devid, int instance);
#endif