Re: [nfsv4] Last call for RFC3530bis-13 (ends on Sept 2nd)

Trond Myklebust <Trond.Myklebust@netapp.com> Thu, 18 August 2011 15:12 UTC

Return-Path: <Trond.Myklebust@netapp.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 182F621F86DD for <nfsv4@ietfa.amsl.com>; Thu, 18 Aug 2011 08:12:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.52
X-Spam-Level:
X-Spam-Status: No, score=-10.52 tagged_above=-999 required=5 tests=[AWL=0.079, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C7MkSfKZwub1 for <nfsv4@ietfa.amsl.com>; Thu, 18 Aug 2011 08:12:08 -0700 (PDT)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by ietfa.amsl.com (Postfix) with ESMTP id 6948321F86B1 for <nfsv4@ietf.org>; Thu, 18 Aug 2011 08:12:08 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="4.68,245,1312182000"; d="scan'208";a="571930467"
Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx2-out.netapp.com with ESMTP; 18 Aug 2011 08:13:02 -0700
Received: from svlrsexc1-prd.hq.netapp.com (svlrsexc1-prd.hq.netapp.com [10.57.115.30]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id p7IFD2O5018777; Thu, 18 Aug 2011 08:13:02 -0700 (PDT)
Received: from SACMVEXC2-PRD.hq.netapp.com ([10.99.115.18]) by svlrsexc1-prd.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 18 Aug 2011 08:13:02 -0700
Received: from 10.55.68.51 ([10.55.68.51]) by SACMVEXC2-PRD.hq.netapp.com ([10.99.115.16]) with Microsoft Exchange Server HTTP-DAV ; Thu, 18 Aug 2011 15:13:02 +0000
Received: from lade.trondhjem.org by SACMVEXC2-PRD.hq.netapp.com; 18 Aug 2011 11:13:02 -0400
From: Trond Myklebust <Trond.Myklebust@netapp.com>
To: "J. Bruce Fields" <bfields@fieldses.org>
Date: Thu, 18 Aug 2011 11:13:02 -0400
In-Reply-To: <20110818150711.GC21970@fieldses.org>
References: <E043D9D8EE3B5743B8B174A814FD584F1FE31B8B@TK5EX14MBXC124.redmond.corp.microsoft.com> <1313586323.4461.5.camel@lade.trondhjem.org> <47D601FA-792A-4FA3-9FC4-1298D38F9F84@netapp.com> <20110818150711.GC21970@fieldses.org>
Organization: NetApp Inc
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Evolution 3.0.2 (3.0.2-3.fc15)
Message-ID: <1313680382.2566.12.camel@lade.trondhjem.org>
Mime-Version: 1.0
X-OriginalArrivalTime: 18 Aug 2011 15:13:02.0503 (UTC) FILETIME=[52B81370:01CC5DB9]
Cc: "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] Last call for RFC3530bis-13 (ends on Sept 2nd)
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Aug 2011 15:12:09 -0000

On Thu, 2011-08-18 at 11:07 -0400, J. Bruce Fields wrote: 
> On Wed, Aug 17, 2011 at 01:30:28PM -0500, Thomas Haynes wrote:
> > 
> > On Aug 17, 2011, at 8:05 AM, Trond Myklebust wrote:
> > 
> > > 
> > > Does it contain any advice on the OPEN return value when applied to a
> > > file that is not a regular file, symlink or directory? I'll be back in
> > > active duty and able to check for myself tomorrow, but I thought I'd
> > > draw it to your attention now.
> > > 
> > 
> > I assume you are speaking with respect to the recent thread:
> > 
> > Re: [nfsv4] open() of device special files
> > 
> > And the answer would be no, we made no changes from 3530
> > there.
> > 
> > You want to add text to the effect to return NFS4ERR_SYMLINK
> > on an OPEN of an incorrect type?
> 
> Also not a spec issue unless this goes unfixed in our implementations,
> but note rfc 5661 requires NFS4ERR_WRONG_TYPE in the case of OPEN of a
> device (p. 455 in the OPEN implementation section, "If the component is
> neither of those but not an ordinary file, the error NFS4ERR_WRONG_TYPE
> is returned.")
> 
> One other 3530bis question:
> 
> I'm trying to decide where else the server could return NFS4ERR_SYMLINK.
> 3530bis says COMMIT, LOOKUP, LOOKUPP, OPEN, READ, WRITE.
> 
> I wonder about:
> 
> 	CLOSE, OPEN_CONFIRM, LOCK, LOCKU, LOCKT: as with READ, WRITE,
> 	and COMMIT, these cases where the client should have known
> 	better, and we may as well allow (but not require)
> 	NFS4ERR_SYMLINK, as we do NFS4ERR_ISDIR.  (Also NFS4ERR_SYMLINK
> 	is on the error lists for some of these in rfc 5661).
> 
> 	CREATE, READDIR, REMOVE, RENAME, SECINFO, possibly some others:
> 	currently require NFS4ERR_NOTDIR.  I wonder if NFS4ERR_SYMLINK
> 	should also be allowed.  I guess these are also buggy-client
> 	cases, so I think it's safely left up to the implementation
> 	whether to return INVAL, NOTDIR, or SYMLINK.

I can live with those returning NFS4ERR_INVAL. Those are all cases where
the error applies to an invalid object which was passed in the form of a
filehandle. IOW: the client can and should know better.

> (And, a really nitty nit: why are the page numbers in the table of
> contents at
> 
> 	http://tools.ietf.org/html/draft-ietf-nfsv4-rfc3530bis-13
> 
> off by one?)

Are they? They seem correct to me. Remember that RFCs list the page
number at the bottom of the page and not the top.

-- 
Trond Myklebust
Linux NFS client maintainer

NetApp
Trond.Myklebust@netapp.com
www.netapp.com