Re: [nfsv4] [RFD] How to interpret empty path components in fs_locations/fs_locations_info
<david.noveck@emc.com> Fri, 22 October 2010 02:07 UTC
Return-Path: <david.noveck@emc.com>
X-Original-To: nfsv4@core3.amsl.com
Delivered-To: nfsv4@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 276CE3A67EE for <nfsv4@core3.amsl.com>; Thu, 21 Oct 2010 19:07:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.669
X-Spam-Level:
X-Spam-Status: No, score=-6.669 tagged_above=-999 required=5 tests=[AWL=-0.070, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HpqUZceoF3an for <nfsv4@core3.amsl.com>; Thu, 21 Oct 2010 19:07:05 -0700 (PDT)
Received: from mexforward.lss.emc.com (mexforward.lss.emc.com [128.222.32.20]) by core3.amsl.com (Postfix) with ESMTP id 46C5A3A6359 for <nfsv4@ietf.org>; Thu, 21 Oct 2010 19:07:05 -0700 (PDT)
Received: from hop04-l1d11-si01.isus.emc.com (HOP04-L1D11-SI01.isus.emc.com [10.254.111.54]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id o9M28c48009319 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 21 Oct 2010 22:08:38 -0400
Received: from mailhub.lss.emc.com (mailhub.lss.emc.com [10.254.221.253]) by hop04-l1d11-si01.isus.emc.com (RSA Interceptor); Thu, 21 Oct 2010 22:08:33 -0400
Received: from corpussmtp5.corp.emc.com (corpussmtp5.corp.emc.com [128.221.166.229]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id o9M27R7r031365; Thu, 21 Oct 2010 22:07:28 -0400
Received: from CORPUSMX50A.corp.emc.com ([128.221.62.45]) by corpussmtp5.corp.emc.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 21 Oct 2010 22:07:27 -0400
x-mimeole: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Thu, 21 Oct 2010 22:07:26 -0400
Message-ID: <BF3BB6D12298F54B89C8DCC1E4073D80028C7168@CORPUSMX50A.corp.emc.com>
In-Reply-To: <1287689556.9144.79.camel@heimdal.trondhjem.org>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [nfsv4] [RFD] How to interpret empty path components in fs_locations/fs_locations_info
Thread-Index: ActxVsQCTPne8oisSiuXRigWZWCCiQANmZ6A
References: <1287523510.9356.38.camel@heimdal.trondhjem.org> <BF3BB6D12298F54B89C8DCC1E4073D8002851EED@CORPUSMX50A.corp.emc.com> <1287689556.9144.79.camel@heimdal.trondhjem.org>
From: david.noveck@emc.com
To: trond.myklebust@fys.uio.no
X-OriginalArrivalTime: 22 Oct 2010 02:07:27.0056 (UTC) FILETIME=[DFE0A500:01CB718D]
X-EMM-MHVC: 1
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] [RFD] How to interpret empty path components in fs_locations/fs_locations_info
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/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: Fri, 22 Oct 2010 02:07:07 -0000
> > you MUST reject a pathname 4 with a zero-length component > > unless it is an instance of representation 2. > > I'm not sure I agree with this. If a client is given a crazy > pathname by the server, through an fs_locations request, but > it still manages to make sense of it, then why shouldn't it > make the attempt? The alternative would be to tell the application > 'EIO'... Note that the third point which you agreed says you MUST NOT send something like that. If someone sends me something that the spec says he MUST NOT, I feel that the best thing to do is to reject it. Otherwise, you the spec has to decide what this thing that it has defined as not valid means, and why bother doing that. -----Original Message----- From: Trond Myklebust [mailto:trond.myklebust@fys.uio.no] Sent: Thursday, October 21, 2010 3:33 PM To: Noveck, David Cc: nfsv4@ietf.org Subject: RE: [nfsv4] [RFD] How to interpret empty path components in fs_locations/fs_locations_info On Tue, 2010-10-19 at 21:08 -0400, david.noveck@emc.com wrote: > > 1. The server may specify a 'pathname4' entry with no components > > 2. The server may specify a 'pathname4' with a single component > of > > length 0. > > > The following question then arose: if we allow representations > > of type 2. above, then presumably we must also allow for the fact > > that the server may embed zero-length components anywhere in the > > 'pathname4' array. > > Why do you presume that? > > I guess it is the only way you can make representation 2 appear logical. > > I just don't think that representation 2 is logical. Representation 1 > makes the most sense having more than one representation for the same > thing does not really make sense. > > But we have a practical problem, in that some servers generate > representation 2 and it doesn't seem fair at this point to reject what > they are sending if we can figure out what was intended. The spec > didn't tell them to do something else. > > So I think it makes sense to say: > > you SHOULD send representation 1. > you MAY send representation 2. > you MUST NOT send a pathname4 with a zero-length component > unless it is an instance of representation 2. Agreed. > you MUST accept representation 1. > you SHOULD accept representation 2. Agreed > you MUST reject a pathname 4 with a zero-length component > unless it is an instance of representation 2. I'm not sure I agree with this. If a client is given a crazy pathname by the server, through an fs_locations request, but it still manages to make sense of it, then why shouldn't it make the attempt? The alternative would be to tell the application 'EIO'... Cheers Trond > -----Original Message----- > From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf > Of Trond Myklebust > Sent: Tuesday, October 19, 2010 5:25 PM > To: nfsv4@ietf.org > Subject: [nfsv4] [RFD] How to interpret empty path components in > fs_locations/fs_locations_info > > Hi, > > An issue was raised in the fedfs concall last week concerning how to > represent the root directory in fs_locations/fs_locations_info. > > As near as the group on the call could determine, there are 2 possible > representations, neither of which appear to be explicitly forbidden by > the spec: > > 1. The server may specify a 'pathname4' entry with no components > 2. The server may specify a 'pathname4' with a single component of > length 0. > > The following question then arose: if we allow representations of type > 2. above, then presumably we must also allow for the fact that the > server may embed zero-length components anywhere in the 'pathname4' > array. We assume that the interpretation would then be the same as a > POSIX path of the form /a/b/////c (i.e. the path should be interpreted > as equivalent to /a/b/c)? > > The question we'd like to put to the list is therefore whether or not > clients should be required to deal with this, or whether the spec should > be amended to discourage (or even forbid) servers from using this kind > of representation for a path? > > Cheers > Trond > > _______________________________________________ > nfsv4 mailing list > nfsv4@ietf.org > https://www.ietf.org/mailman/listinfo/nfsv4 >
- [nfsv4] [RFD] How to interpret empty path compone… Trond Myklebust
- Re: [nfsv4] [RFD] How to interpret empty path com… Nicolas Williams
- Re: [nfsv4] [RFD] How to interpret empty path com… Nicolas Williams
- Re: [nfsv4] [RFD] How to interpret empty path com… david.noveck
- Re: [nfsv4] [RFD] How to interpret empty path com… Trond Myklebust
- Re: [nfsv4] [RFD] How to interpret empty path com… david.noveck