From e378778686fca24934e76c41e6496b12162a5420 Mon Sep 17 00:00:00 2001 From: Kaushal M Date: Wed, 3 Aug 2011 18:12:21 +0530 Subject: 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 Reviewed-by: Vijay Bellur --- cli/src/cli-cmd.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'cli/src/cli-cmd.h') diff --git a/cli/src/cli-cmd.h b/cli/src/cli-cmd.h index f6abfa46..1878571f 100644 --- a/cli/src/cli-cmd.h +++ b/cli/src/cli-cmd.h @@ -25,7 +25,10 @@ #include "config.h" #endif +#include + #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); -- cgit