Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158551
b: refs/heads/master
c: 7ed0ff9
h: refs/heads/master
i:
  158549: 7baf789
  158547: b148147
  158543: 545fa5d
v: v3
  • Loading branch information
Chuck Lever authored and Trond Myklebust committed Aug 9, 2009
1 parent c926b0d commit a6ed782
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0d36c4f7574d5a33bedd8f0e3c793490d45d83c6
refs/heads/master: 7ed0ff983c8ad30bf4e2b9fdbb299a3e3ec08d08
22 changes: 22 additions & 0 deletions trunk/net/sunrpc/rpcb_clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,28 @@ static int rpcb_decode_set(struct rpc_rqst *req, __be32 *p,
return 0;
}

static int rpcb_dec_set(struct rpc_rqst *req, __be32 *p,
unsigned int *boolp)
{
struct rpc_task *task = req->rq_task;
struct xdr_stream xdr;

xdr_init_decode(&xdr, &req->rq_rcv_buf, p);

p = xdr_inline_decode(&xdr, sizeof(__be32));
if (unlikely(p == NULL))
return -EIO;

*boolp = 0;
if (*p)
*boolp = 1;

dprintk("RPC: %5u RPCB_%s call %s\n",
task->tk_pid, task->tk_msg.rpc_proc->p_name,
(*boolp ? "succeeded" : "failed"));
return 0;
}

static int encode_rpcb_string(struct xdr_stream *xdr, const char *string,
const u32 maxstrlen)
{
Expand Down

0 comments on commit a6ed782

Please sign in to comment.