diff options
author | Pavan Sondur <pavan@gluster.com> | 2010-08-16 02:35:40 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-08-16 01:49:00 -0700 |
commit | 659e2d938f4da023411114c13a14337c21083411 (patch) | |
tree | 0e2c84115c9fadadde1b8e594a52dddc3904562e /cli/src/cli.h | |
parent | 32041afec462237c44a557ccdc4a32c6e33bad96 (diff) |
cli: Cleanup replace brick operations.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1304 (Free state info for replace brick)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1304
Diffstat (limited to 'cli/src/cli.h')
-rw-r--r-- | cli/src/cli.h | 17 |
1 files changed, 5 insertions, 12 deletions
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 (); |