diff options
author | Kaushal M <kaushal@gluster.com> | 2011-08-03 18:12:21 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-09-18 23:46:09 -0700 |
commit | e378778686fca24934e76c41e6496b12162a5420 (patch) | |
tree | b917a0af19eed73e3f600cf92982aa9760ad73ee /cli/src/cli-cmd.h | |
parent | 46a7adafe94b14778328d77a7f743fbce17341e3 (diff) |
cli : check for bad brick order while creating replicate volume
gluster cli now checks the brick order when creating
a replicate or distributed-replicate volume.
If a non-optimal order is found the user is given a
warning and asked if the volume creation can proceed.
Change-Id: I38c4cb65bffb40ccf95319cf3f4f3423a4cdebe9
BUG: 2407
Reviewed-on: http://review.gluster.com/151
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'cli/src/cli-cmd.h')
-rw-r--r-- | cli/src/cli-cmd.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cli/src/cli-cmd.h b/cli/src/cli-cmd.h index f6abfa4645f..1878571fa34 100644 --- a/cli/src/cli-cmd.h +++ b/cli/src/cli-cmd.h @@ -25,7 +25,10 @@ #include "config.h" #endif +#include <netdb.h> + #include "cli.h" +#include "list.h" typedef enum { GF_ANSWER_YES = 1, @@ -55,6 +58,17 @@ typedef struct cli_profile_info_ { double percentage_avg_latency; } cli_profile_info_t; +typedef struct addrinfo_list { + struct list_head list; + struct addrinfo *info; +} addrinfo_list_t; + +typedef enum { + GF_AI_COMPARE_NO_MATCH = 0, + GF_AI_COMPARE_MATCH = 1, + GF_AI_COMPARE_ERROR = 2 +} gf_ai_compare_t; + typedef struct cli_cmd_volume_get_ctx_ cli_cmd_volume_get_ctx_t; int cli_cmd_volume_register (struct cli_state *state); |