From acdeed002d30209e0a058c2df0346d4f16c08994 Mon Sep 17 00:00:00 2001 From: Pavan Sondur Date: Fri, 6 Aug 2010 05:31:45 +0000 Subject: add pump xlator and changes for replace-brick Signed-off-by: Pavan Vilas Sondur Signed-off-by: Anand V. Avati BUG: 1235 (Bug for all pump/migrate commits) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1235 --- cli/src/cli.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'cli/src/cli.h') diff --git a/cli/src/cli.h b/cli/src/cli.h index c31b4631ab8..7b2de667358 100644 --- a/cli/src/cli.h +++ b/cli/src/cli.h @@ -37,6 +37,14 @@ enum argp_option_keys { ARGP_PORT_KEY = 'p', }; +typedef enum replace_brick_cmd { + REPLACE_BRICK_START, + REPLACE_BRICK_PAUSE, + REPLACE_BRICK_ABORT, + REPLACE_BRICK_STATUS, + REPLACE_BRICK_COMMIT, +} replace_brick_cmd_t; + struct cli_state; struct cli_cmd_word; struct cli_cmd_tree; @@ -116,6 +124,13 @@ struct cli_local { struct { char *volname; } defrag_vol; + + struct { + char *volume; + replace_brick_cmd_t op; + char *src_brick; + char *dst_brick; + } replace_brick; } u; }; -- cgit