Re: [nfsv4] FYI: Readdir not allowed on NFS pseudo root

Spencer Shepler <spencer.shepler@sun.com> Mon, 17 May 2004 15:13 UTC

Received: from optimus.ietf.org (www.iesg.org [132.151.1.19]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA27571 for <nfsv4-archive@odin.ietf.org>; Mon, 17 May 2004 11:13:20 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1BPjij-0001Ix-UW for nfsv4-archive@odin.ietf.org; Mon, 17 May 2004 11:08:02 -0400
Received: (from exim@localhost) by www1.ietf.org (8.12.8/8.12.8/Submit) id i4HF8164005015 for nfsv4-archive@odin.ietf.org; Mon, 17 May 2004 11:08:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1BPjdu-0000dG-IG for nfsv4-web-archive@optimus.ietf.org; Mon, 17 May 2004 11:03:02 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA27196 for <nfsv4-web-archive@ietf.org>; Mon, 17 May 2004 11:02:58 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx) by ietf-mx with esmtp (Exim 4.32) id 1BPjdr-00002B-KS for nfsv4-web-archive@ietf.org; Mon, 17 May 2004 11:02:59 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12) id 1BPjcu-0007Vx-00 for nfsv4-web-archive@ietf.org; Mon, 17 May 2004 11:02:01 -0400
Received: from optimus.ietf.org ([132.151.1.19]) by ietf-mx with esmtp (Exim 4.12) id 1BPjbo-0006zE-00 for nfsv4-web-archive@ietf.org; Mon, 17 May 2004 11:00:52 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1BPjZ3-0008WF-5h; Mon, 17 May 2004 10:58:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1BPjRW-0007gQ-0x for nfsv4@optimus.ietf.org; Mon, 17 May 2004 10:50:14 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA26517 for <nfsv4@ietf.org>; Mon, 17 May 2004 10:50:10 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx) by ietf-mx with esmtp (Exim 4.32) id 1BPjRT-0003Mz-BV for nfsv4@ietf.org; Mon, 17 May 2004 10:50:11 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12) id 1BPjQY-00032q-00 for nfsv4@ietf.org; Mon, 17 May 2004 10:49:15 -0400
Received: from nwkea-mail-1.sun.com ([192.18.42.13]) by ietf-mx with esmtp (Exim 4.12) id 1BPjPt-0002hB-00 for nfsv4@ietf.org; Mon, 17 May 2004 10:48:33 -0400
Received: from engmail2sun.Eng.Sun.COM ([129.144.134.19]) by nwkea-mail-1.sun.com (8.12.10/8.12.9) with ESMTP id i4HEm26b001085; Mon, 17 May 2004 07:48:02 -0700 (PDT)
Received: from [192.168.0.2] (vpn-129-150-32-72.Central.Sun.COM [129.150.32.72]) by engmail2sun.Eng.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id i4HEm1KN012724; Mon, 17 May 2004 07:48:01 -0700 (PDT)
In-Reply-To: <20040517111558.1E073207E2@citi.umich.edu>
References: <20040517111558.1E073207E2@citi.umich.edu>
Mime-Version: 1.0 (Apple Message framework v613)
Content-Type: text/plain; charset="US-ASCII"; format="flowed"
Message-Id: <40A43CAA-A811-11D8-9586-000A95DBCB70@sun.com>
Content-Transfer-Encoding: 7bit
Cc: nfsv4@ietf.org
From: Spencer Shepler <spencer.shepler@sun.com>
Subject: Re: [nfsv4] FYI: Readdir not allowed on NFS pseudo root
To: Jim Rees <rees@umich.edu>
X-Mailer: Apple Mail (2.613)
Content-Transfer-Encoding: 7bit
Sender: nfsv4-admin@ietf.org
Errors-To: nfsv4-admin@ietf.org
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/nfsv4/>
X-Original-Date: Mon, 17 May 2004 09:48:25 -0500
Date: Mon, 17 May 2004 09:48:25 -0500
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on ietf-mx.ietf.org
X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.60
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

On May 17, 2004, at 6:15 AM, Jim Rees wrote:

>   Seems like the server would return an "empty" response for READDIR
>   on this special server.
>
> But that would be wrong too.  That would imply the directory is empty. 
>  I
> can imagine a client that would get very confused by this.  Suppose, 
> for
> example, the client caches directory contents after a successful 
> READDIR,
> and uses the cached copy for subsequent lookups.  I think 
> NFS4ERR_ACCESS is
> the only acceptable response.

I don't have a strong opinion.  Either response will likely be a call
generator for the interactive user: "I don't see the files I expect to 
see"
or "I get an error when I try to 'ls' the directory".

With tongue firmly planted in cheek, the server could respond to
the READDIR response with a single entry with a name of:
	"This server does not support the READDIR operation"

>
>   This also implies that clients must use LOOKUP to traverse the
>   server's namespace on things like traditional mount operations that
>   a client would do.
>
> Yes.  The client must be prepared for this anyway.  In fact, the client
> probably can't tell and doesn't care whether it's in a pseudo-fs or a 
> real
> one.
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www1.ietf.org/mailman/listinfo/nfsv4


_______________________________________________
nfsv4 mailing list
nfsv4@ietf.org
https://www1.ietf.org/mailman/listinfo/nfsv4