Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192386
b: refs/heads/master
c: b7299f4
h: refs/heads/master
v: v3
  • Loading branch information
J. Bruce Fields committed May 18, 2010
1 parent 9064804 commit e0b4d9b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 15ddb4aec54422ead137b03ea4e9b3f5db3f7cc2
refs/heads/master: b7299f44394336f51b526247a870d47d28f4f97c
10 changes: 8 additions & 2 deletions trunk/fs/nfsd/nfs4callback.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,13 +424,19 @@ static struct rpc_procinfo nfs4_cb_procedures[] = {
};

static struct rpc_version nfs_cb_version4 = {
/*
* Note on the callback rpc program version number: despite language in rfc
* 5661 section 18.36.3 requiring servers to use 4 in this field, the
* official xdr descriptions for both 4.0 and 4.1 specify version 1, and
* in practice that appears to be what implementations use. The section
* 18.36.3 language is expected to be fixed in an erratum.
*/
.number = 1,
.nrprocs = ARRAY_SIZE(nfs4_cb_procedures),
.procs = nfs4_cb_procedures
};

static struct rpc_version * nfs_cb_version[] = {
NULL,
&nfs_cb_version4,
};

Expand Down Expand Up @@ -471,7 +477,7 @@ int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *cb)
.timeout = &timeparms,
.program = &cb_program,
.prognumber = cb->cb_prog,
.version = nfs_cb_version[1]->number,
.version = 0,
.authflavor = clp->cl_flavor,
.flags = (RPC_CLNT_CREATE_NOPING | RPC_CLNT_CREATE_QUIET),
.client_name = clp->cl_principal,
Expand Down

0 comments on commit e0b4d9b

Please sign in to comment.