Skip to contentSkip to conversation

nfsd v4.1 lOCKT clientid field must be ignored

PATCH In review [email protected] 2 participants 3 messages Apr 22, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfsd v4.1 lOCKT clientid field must be ignored

Connectathon lock tests now pass with 2.6.39-rc client.

-->Andy

#1 lore raw

PATCH 1/1 nfsd v4.1 lOCKT clientid field must be ignored

From: Andy Adamson <[email protected]>

RFC 5661 Section 18.11.3

The clientid field of the owner MAY be set to any value by the client and MUST be ignored by the server. The reason the server MUST ignore the clientid field is that the server MUST derive the client ID from the session ID from the SEQUENCE operation of the COMPOUND request.

---
 fs/nfsd/nfs4xdr.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
fs/nfsd/nfs4xdr.c +0 -2
index abdd42d..eb234df 100644
@@ -591,8 +591,6 @@ nfsd4_decode_lockt(struct nfsd4_compoundargs *argp, struct nfsd4_lockt *lockt)
 	READ_BUF(lockt->lt_owner.len);
 	READMEM(lockt->lt_owner.data, lockt->lt_owner.len);
 
-	if (argp->minorversion && !zero_clientid(&lockt->lt_clientid))
-		return nfserr_inval;
 	DECODE_TAIL;
 }
 
Signature · 1 line
1.7.2.3
#2 lore raw
Quoted 8 lines · On Fri, Apr 22, 2011 at 12:45:59PM -0400, [email protected] wrote:

From: Andy Adamson <[email protected]>

RFC 5661 Section 18.11.3

The clientid field of the owner MAY be set to any value by the client and MUST be ignored by the server. The reason the server MUST ignore the clientid field is that the server MUST derive the client ID from the session ID from the SEQUENCE operation of the COMPOUND request.

I thought I'd checked the network and determined the failure prevented the client from even sending a request--but I guess not! Thanks for tracking this down, applied.--b.

Quoted 22 lines
---
 fs/nfsd/nfs4xdr.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
fs/nfsd/nfs4xdr.c +0 -2
index abdd42d..eb234df 100644
@@ -591,8 +591,6 @@ nfsd4_decode_lockt(struct nfsd4_compoundargs *argp, struct nfsd4_lockt *lockt)
 	READ_BUF(lockt->lt_owner.len);
 	READMEM(lockt->lt_owner.data, lockt->lt_owner.len);
 
-	if (argp->minorversion && !zero_clientid(&lockt->lt_clientid))
-		return nfserr_inval;
 	DECODE_TAIL;
 }
 
Signature · 1 line
1.7.2.3