summaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorKaushik BV <kaushikbv@gluster.com>2011-03-14 05:01:31 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-14 04:57:00 -0700
commit9043b0f8b927e687decc738cf736e603436e9e51 (patch)
treed9a16bf5040e33c1197e6d0ca31b265a5594dcda /rpc
parenteadce9083876fb71d1be8f77715866fc8af45ba4 (diff)
mgmt/Glusterd: Make use of regexp pattern-matching sections to set a sane value for remote-gsyncd
Signed-off-by: Kaushik BV <kaushikbv@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 2427 (set a proper default for remote syncdaemon) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2427
Diffstat (limited to 'rpc')
-rw-r--r--rpc/xdr/src/cli1-xdr.c3
-rw-r--r--rpc/xdr/src/cli1-xdr.h1
-rw-r--r--rpc/xdr/src/cli1-xdr.x1
3 files changed, 5 insertions, 0 deletions
diff --git a/rpc/xdr/src/cli1-xdr.c b/rpc/xdr/src/cli1-xdr.c
index 8e9395a..ba58992 100644
--- a/rpc/xdr/src/cli1-xdr.c
+++ b/rpc/xdr/src/cli1-xdr.c
@@ -712,6 +712,9 @@ xdr_gf1_cli_gsync_set_rsp (XDR *xdrs, gf1_cli_gsync_set_rsp *objp)
return FALSE;
if (!xdr_string (xdrs, &objp->gsync_prefix, ~0))
return FALSE;
+ if (!xdr_string (xdrs, &objp->glusterd_workdir, ~0))
+ return FALSE;
+
return TRUE;
}
diff --git a/rpc/xdr/src/cli1-xdr.h b/rpc/xdr/src/cli1-xdr.h
index 0ca38b3..fc84e48 100644
--- a/rpc/xdr/src/cli1-xdr.h
+++ b/rpc/xdr/src/cli1-xdr.h
@@ -440,6 +440,7 @@ struct gf1_cli_gsync_set_rsp {
char *master;
char *slave;
char *gsync_prefix;
+ char *glusterd_workdir;
};
typedef struct gf1_cli_gsync_set_rsp gf1_cli_gsync_set_rsp;
diff --git a/rpc/xdr/src/cli1-xdr.x b/rpc/xdr/src/cli1-xdr.x
index 61d0b84..f47d18d 100644
--- a/rpc/xdr/src/cli1-xdr.x
+++ b/rpc/xdr/src/cli1-xdr.x
@@ -324,6 +324,7 @@ struct gf1_cli_gsync_set_rsp {
string master<>;
string slave<>;
string gsync_prefix<>;
+ string glusterd_workdir<>;
};
struct gf1_cli_stats_volume_req {