From acea7409a35d03c438ff2738f701add26f0061c9 Mon Sep 17 00:00:00 2001 From: Kaushal M Date: Wed, 14 Sep 2011 18:29:18 +0530 Subject: glusterd, cli: adds 'force' for 'peer detach' Adds add a 'force' option to 'peer detach' to forcefully detach a peer from a cluster, even when the cluster contains volumes with bricks on the peer. Change-Id: I134df51c16a07345c8869b318141d427b572eba5 BUG: 3549 Reviewed-on: http://review.gluster.com/429 Tested-by: Gluster Build System Reviewed-by: Krishnan Parthasarathi --- rpc/xdr/src/cli1-xdr.c | 2 ++ rpc/xdr/src/cli1-xdr.h | 1 + rpc/xdr/src/cli1-xdr.x | 1 + 3 files changed, 4 insertions(+) (limited to 'rpc') diff --git a/rpc/xdr/src/cli1-xdr.c b/rpc/xdr/src/cli1-xdr.c index 5885000cd8a..d325ac42ae2 100644 --- a/rpc/xdr/src/cli1-xdr.c +++ b/rpc/xdr/src/cli1-xdr.c @@ -255,6 +255,8 @@ xdr_gf1_cli_deprobe_req (XDR *xdrs, gf1_cli_deprobe_req *objp) return FALSE; if (!xdr_int (xdrs, &objp->port)) return FALSE; + if (!xdr_int (xdrs, &objp->flags)) + return FALSE; return TRUE; } diff --git a/rpc/xdr/src/cli1-xdr.h b/rpc/xdr/src/cli1-xdr.h index 32f624faf60..b92c707bb4d 100644 --- a/rpc/xdr/src/cli1-xdr.h +++ b/rpc/xdr/src/cli1-xdr.h @@ -176,6 +176,7 @@ typedef struct gf1_cli_probe_rsp gf1_cli_probe_rsp; struct gf1_cli_deprobe_req { char *hostname; int port; + int flags; }; typedef struct gf1_cli_deprobe_req gf1_cli_deprobe_req; diff --git a/rpc/xdr/src/cli1-xdr.x b/rpc/xdr/src/cli1-xdr.x index 5ff7aa3e98a..146ed68d35a 100644 --- a/rpc/xdr/src/cli1-xdr.x +++ b/rpc/xdr/src/cli1-xdr.x @@ -117,6 +117,7 @@ enum gf1_cli_top_op { struct gf1_cli_deprobe_req { string hostname<>; int port; + int flags; } ; struct gf1_cli_deprobe_rsp { -- cgit