From f803fae036177c3b9d9513f5b6300d426366eb62 Mon Sep 17 00:00:00 2001 From: Pavan Sondur Date: Mon, 26 Jul 2010 07:07:24 +0000 Subject: cli: Fixes related to get brick-replace to work. Signed-off-by: Pavan Vilas Sondur Signed-off-by: Anand V. Avati BUG: 1187 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1187 --- rpc/xdr/src/cli1-xdr.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'rpc/xdr/src/cli1-xdr.h') diff --git a/rpc/xdr/src/cli1-xdr.h b/rpc/xdr/src/cli1-xdr.h index 50a26760adf..51fce3e9296 100644 --- a/rpc/xdr/src/cli1-xdr.h +++ b/rpc/xdr/src/cli1-xdr.h @@ -43,21 +43,21 @@ typedef enum gf1_cli_get_volume gf1_cli_get_volume; struct gf1_cli_probe_req { char *hostname; - int port; + int port; }; typedef struct gf1_cli_probe_req gf1_cli_probe_req; struct gf1_cli_probe_rsp { int op_ret; int op_errno; + int port; char *hostname; - int port; }; typedef struct gf1_cli_probe_rsp gf1_cli_probe_rsp; struct gf1_cli_deprobe_req { char *hostname; - int port; + int port; }; typedef struct gf1_cli_deprobe_req gf1_cli_deprobe_req; @@ -181,6 +181,7 @@ typedef struct gf1_cli_defrag_vol_req gf1_cli_defrag_vol_req; struct gf1_cli_defrag_vol_rsp { int op_ret; int op_errno; + char *volname; }; typedef struct gf1_cli_defrag_vol_rsp gf1_cli_defrag_vol_rsp; @@ -224,13 +225,9 @@ struct gf1_cli_replace_brick_req { char *volname; gf1_cli_replace_op op; struct { - u_int src_brick_len; - char *src_brick_val; - } src_brick; - struct { - u_int dst_brick_len; - char *dst_brick_val; - } dst_brick; + u_int bricks_len; + char *bricks_val; + } bricks; }; typedef struct gf1_cli_replace_brick_req gf1_cli_replace_brick_req; -- cgit