diff options
author | Stefan Behrens <sbehrens@giantdisaster.de> | 2012-05-07 14:00:20 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-01-31 13:47:26 +0100 |
commit | 7e08a9116d9d692e0e298197de55b6b5505373bf (patch) | |
tree | 14c8e690382a882a699ba48dfb3dc0672d5d6bce /ctree.h | |
parent | 5b8826ddfd1c4fcdcfe9f78fd80cfeeac9de1b21 (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 'ctree.h')
-rw-r--r-- | ctree.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1051,6 +1051,12 @@ struct btrfs_root { #define BTRFS_DEV_STATS_KEY 249 /* + * Persistently stores the device replace state in the device tree. + * The key is built like this: (0, BTRFS_DEV_REPLACE_KEY, 0). + */ +#define BTRFS_DEV_REPLACE_KEY 250 + +/* * string items are for debugging. They just store a short string of * data in the FS */ |