diff options
author | Pranith K <pranithk@gluster.com> | 2011-03-10 02:19:20 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-10 08:09:42 -0800 |
commit | 970b22e377e20408df8646cdc61a968b55c145b1 (patch) | |
tree | f28637bd60813a30bc4b9a37b7d3b7cac93250cf /rpc/xdr/src/glusterd1-xdr.c | |
parent | 332508e8e3b5cd2ffe1c68e496d294d4fef2dea4 (diff) |
rpc/xdr: Add gluster profile and brick op structures
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1965 (need a cmd to get io-stat details)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1965
Diffstat (limited to 'rpc/xdr/src/glusterd1-xdr.c')
-rw-r--r-- | rpc/xdr/src/glusterd1-xdr.c | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/rpc/xdr/src/glusterd1-xdr.c b/rpc/xdr/src/glusterd1-xdr.c index 9f7cd222a..93cdad767 100644 --- a/rpc/xdr/src/glusterd1-xdr.c +++ b/rpc/xdr/src/glusterd1-xdr.c @@ -22,7 +22,7 @@ * It was generated using rpcgen. */ -#include "glusterd1.h" +#include "glusterd1-xdr.h" #include "compat.h" bool_t @@ -377,3 +377,31 @@ xdr_gd1_mgmt_friend_update_rsp (XDR *xdrs, gd1_mgmt_friend_update_rsp *objp) return FALSE; return TRUE; } + +bool_t +xdr_gd1_mgmt_brick_op_req (XDR *xdrs, gd1_mgmt_brick_op_req *objp) +{ + + if (!xdr_string (xdrs, &objp->name, ~0)) + return FALSE; + if (!xdr_int (xdrs, &objp->op)) + return FALSE; + if (!xdr_bytes (xdrs, (char **)&objp->input.input_val, (u_int *) &objp->input.input_len, ~0)) + return FALSE; + return TRUE; +} + +bool_t +xdr_gd1_mgmt_brick_op_rsp (XDR *xdrs, gd1_mgmt_brick_op_rsp *objp) +{ + + if (!xdr_int (xdrs, &objp->op_ret)) + return FALSE; + if (!xdr_int (xdrs, &objp->op_errno)) + return FALSE; + if (!xdr_bytes (xdrs, (char **)&objp->output.output_val, (u_int *) &objp->output.output_len, ~0)) + return FALSE; + if (!xdr_string (xdrs, &objp->op_errstr, ~0)) + return FALSE; + return TRUE; +} |