summaryrefslogtreecommitdiffstats
path: root/rpc/xdr/src/cli1-xdr.c
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2011-03-16 03:35:16 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-16 02:35:30 -0700
commit3d1fc9ebe2b0292108dd0737cf8f40d6fcb8cf51 (patch)
treefa1e4b0454727a74e829a9cb25893394de8381d4 /rpc/xdr/src/cli1-xdr.c
parentf208d7148fefd55b4073bda978816d71831ffefa (diff)
downloadglusterfs-3d1fc9ebe2b0292108dd0737cf8f40d6fcb8cf51.tar.gz
glusterfs-3d1fc9ebe2b0292108dd0737cf8f40d6fcb8cf51.tar.xz
glusterfs-3d1fc9ebe2b0292108dd0737cf8f40d6fcb8cf51.zip
TOP: cli, rpc/xdr related changes
Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 2516 (Implement gluster volume top command) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2516
Diffstat (limited to 'rpc/xdr/src/cli1-xdr.c')
-rw-r--r--rpc/xdr/src/cli1-xdr.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/rpc/xdr/src/cli1-xdr.c b/rpc/xdr/src/cli1-xdr.c
index c51546a8ed..fa24ad90bb 100644
--- a/rpc/xdr/src/cli1-xdr.c
+++ b/rpc/xdr/src/cli1-xdr.c
@@ -108,6 +108,15 @@ xdr_gf1_cli_stats_op (XDR *xdrs, gf1_cli_stats_op *objp)
}
bool_t
+xdr_gf1_cli_top_op (XDR *xdrs, gf1_cli_top_op *objp)
+{
+
+ if (!xdr_enum (xdrs, (enum_t *) objp))
+ return FALSE;
+ return TRUE;
+}
+
+bool_t
xdr_gf1_cli_probe_req (XDR *xdrs, gf1_cli_probe_req *objp)
{
@@ -764,6 +773,9 @@ xdr_gf1_cli_stats_volume_req (XDR *xdrs, gf1_cli_stats_volume_req *objp)
return FALSE;
if (!xdr_gf1_cli_stats_op (xdrs, &objp->op))
return FALSE;
+ if (!xdr_bytes (xdrs, (char **)&objp->dict_req.dict_req_val, (u_int *) &objp->dict_req.dict_req_len, ~0))
+ return FALSE;
+
return TRUE;
}