From 659e2d938f4da023411114c13a14337c21083411 Mon Sep 17 00:00:00 2001 From: Pavan Sondur Date: Mon, 16 Aug 2010 02:35:40 +0000 Subject: cli: Cleanup replace brick operations. Signed-off-by: Pavan Vilas Sondur Signed-off-by: Anand V. Avati BUG: 1304 (Free state info for replace brick) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1304 --- cli/src/cli.h | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'cli/src/cli.h') diff --git a/cli/src/cli.h b/cli/src/cli.h index 854c609d2..9efabfe58 100644 --- a/cli/src/cli.h +++ b/cli/src/cli.h @@ -39,14 +39,6 @@ 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; @@ -129,10 +121,8 @@ struct cli_local { } defrag_vol; struct { - char *volume; - replace_brick_cmd_t op; - char *src_brick; - char *dst_brick; + char *volname; + dict_t *dict; } replace_brick; } u; }; @@ -186,6 +176,9 @@ cli_cmd_volume_replace_brick_parse (const char **words, int wordcount, cli_local_t * cli_local_get (); +void +cli_local_wipe (cli_local_t *local); + int32_t cli_cmd_await_connected (); -- cgit