nfsd v4.1 lOCKT clientid field must be ignored
authorAndy Adamson <andros@netapp.com>
Fri, 22 Apr 2011 16:45:59 +0000 (12:45 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Sat, 30 Apr 2011 00:47:54 +0000 (20:47 -0400)
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.

Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c

index c6766af00d983ec2573266b6592f62fc2f8ba1c9..6e7f10a8935456ef336d03c05595d62f3b30c085 100644 (file)
@@ -588,8 +588,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;
 }