From 7e08a9116d9d692e0e298197de55b6b5505373bf Mon Sep 17 00:00:00 2001 From: Stefan Behrens Date: Mon, 7 May 2012 14:00:20 +0200 Subject: 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 --- ctree.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ctree.h') diff --git a/ctree.h b/ctree.h index 199f0288..4da0af57 100644 --- a/ctree.h +++ b/ctree.h @@ -1050,6 +1050,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 -- cgit v1.2.3