Return-Path: Received: from mx1.redhat.com ([209.132.183.28]:25720 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756257Ab1DVQzL (ORCPT ); Fri, 22 Apr 2011 12:55:11 -0400 Date: Fri, 22 Apr 2011 12:54:52 -0400 From: "J. Bruce Fields" To: andros@netapp.com Cc: linux-nfs@vger.kernel.org Subject: Re: [PATCH 1/1] nfsd v4.1 lOCKT clientid field must be ignored Message-ID: <20110422165451.GB23345@pad.home.fieldses.org> References: <1303490759-2646-1-git-send-email-andros@netapp.com> <1303490759-2646-2-git-send-email-andros@netapp.com> Content-Type: text/plain; charset=us-ascii In-Reply-To: <1303490759-2646-2-git-send-email-andros@netapp.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: MIME-Version: 1.0 On Fri, Apr 22, 2011 at 12:45:59PM -0400, andros@netapp.com wrote: > From: Andy Adamson > > 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. > > Signed-off-by: Andy Adamson > --- > fs/nfsd/nfs4xdr.c | 2 -- > 1 files changed, 0 insertions(+), 2 deletions(-) > > diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c > index abdd42d..eb234df 100644 > --- a/fs/nfsd/nfs4xdr.c > +++ b/fs/nfsd/nfs4xdr.c > @@ -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; > } > > -- > 1.7.2.3 >