diff options
author | Pranith K <pranithk@gluster.com> | 2010-11-09 03:17:31 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-11-09 02:12:24 -0800 |
commit | 891216e186b436444bc5368a96318df7364ce30a (patch) | |
tree | 7b3b9cc489124dd4ba19f14901f869f6f8c8dda4 /rpc/xdr/src | |
parent | 1badd4511f1cd7ea7c3187b121f793cabb414f3a (diff) |
cli: remove volume type from add-brick and remove-brick cmds
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1983 ("type" in add-brick is completely redundant)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1983
Diffstat (limited to 'rpc/xdr/src')
-rw-r--r-- | rpc/xdr/src/cli1-xdr.c | 4 | ||||
-rw-r--r-- | rpc/xdr/src/cli1-xdr.h | 2 | ||||
-rw-r--r-- | rpc/xdr/src/cli1.x | 2 |
3 files changed, 0 insertions, 8 deletions
diff --git a/rpc/xdr/src/cli1-xdr.c b/rpc/xdr/src/cli1-xdr.c index 2db0c7cc..aff0edc3 100644 --- a/rpc/xdr/src/cli1-xdr.c +++ b/rpc/xdr/src/cli1-xdr.c @@ -382,8 +382,6 @@ xdr_gf1_cli_add_brick_req (XDR *xdrs, gf1_cli_add_brick_req *objp) if (!xdr_string (xdrs, &objp->volname, ~0)) return FALSE; - if (!xdr_gf1_cluster_type (xdrs, &objp->type)) - return FALSE; if (!xdr_int (xdrs, &objp->count)) return FALSE; if (!xdr_bytes (xdrs, (char **)&objp->bricks.bricks_val, (u_int *) &objp->bricks.bricks_len, ~0)) @@ -412,8 +410,6 @@ xdr_gf1_cli_remove_brick_req (XDR *xdrs, gf1_cli_remove_brick_req *objp) if (!xdr_string (xdrs, &objp->volname, ~0)) return FALSE; - if (!xdr_gf1_cluster_type (xdrs, &objp->type)) - return FALSE; if (!xdr_int (xdrs, &objp->count)) return FALSE; if (!xdr_bytes (xdrs, (char **)&objp->bricks.bricks_val, (u_int *) &objp->bricks.bricks_len, ~0)) diff --git a/rpc/xdr/src/cli1-xdr.h b/rpc/xdr/src/cli1-xdr.h index 38b5843f..5611f283 100644 --- a/rpc/xdr/src/cli1-xdr.h +++ b/rpc/xdr/src/cli1-xdr.h @@ -229,7 +229,6 @@ typedef struct gf1_cli_defrag_vol_rsp gf1_cli_defrag_vol_rsp; struct gf1_cli_add_brick_req { char *volname; - gf1_cluster_type type; int count; struct { u_int bricks_len; @@ -248,7 +247,6 @@ typedef struct gf1_cli_add_brick_rsp gf1_cli_add_brick_rsp; struct gf1_cli_remove_brick_req { char *volname; - gf1_cluster_type type; int count; struct { u_int bricks_len; diff --git a/rpc/xdr/src/cli1.x b/rpc/xdr/src/cli1.x index 0ac34aea..6c9f70df 100644 --- a/rpc/xdr/src/cli1.x +++ b/rpc/xdr/src/cli1.x @@ -155,7 +155,6 @@ struct gf1_cli_get_vol_rsp { struct gf1_cli_add_brick_req { string volname<>; - gf1_cluster_type type; int count; opaque bricks<>; } ; @@ -169,7 +168,6 @@ struct gf1_cli_get_vol_rsp { struct gf1_cli_remove_brick_req { string volname<>; - gf1_cluster_type type; int count; opaque bricks<>; } ; |