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

Stevan Steve Allen <scallen@us.ibm.com> Mon, 17 May 2004 17:04 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 NAA05386 for <nfsv4-archive@odin.ietf.org>; Mon, 17 May 2004 13:04:27 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1BPlJg-0001au-8R for nfsv4-archive@odin.ietf.org; Mon, 17 May 2004 12:50:16 -0400
Received: (from exim@localhost) by www1.ietf.org (8.12.8/8.12.8/Submit) id i4HGoGfx006129 for nfsv4-archive@odin.ietf.org; Mon, 17 May 2004 12:50:16 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1BPl8v-0008IE-P6 for nfsv4-web-archive@optimus.ietf.org; Mon, 17 May 2004 12:39:10 -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 MAA03807 for <nfsv4-web-archive@ietf.org>; Mon, 17 May 2004 12:39:06 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx) by ietf-mx with esmtp (Exim 4.32) id 1BPl8u-0002By-7i for nfsv4-web-archive@ietf.org; Mon, 17 May 2004 12:39:08 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12) id 1BPl7u-0001oV-00 for nfsv4-web-archive@ietf.org; Mon, 17 May 2004 12:38:07 -0400
Received: from optimus.ietf.org ([132.151.1.19]) by ietf-mx with esmtp (Exim 4.12) id 1BPl6v-0001Rb-00 for nfsv4-web-archive@ietf.org; Mon, 17 May 2004 12:37:05 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1BPkyD-0006DD-9K; Mon, 17 May 2004 12:28:05 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1BPkkf-0002ta-CI for nfsv4@optimus.ietf.org; Mon, 17 May 2004 12:14:05 -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 MAA01831 for <nfsv4@ietf.org>; Mon, 17 May 2004 12:14:02 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx) by ietf-mx with esmtp (Exim 4.32) id 1BPkkd-0000vt-PS for nfsv4@ietf.org; Mon, 17 May 2004 12:14:03 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12) id 1BPkje-0000YD-00 for nfsv4@ietf.org; Mon, 17 May 2004 12:13:03 -0400
Received: from e33.co.us.ibm.com ([32.97.110.131]) by ietf-mx with esmtp (Exim 4.12) id 1BPkic-0007dh-00; Mon, 17 May 2004 12:11:59 -0400
Received: from westrelay04.boulder.ibm.com (westrelay04.boulder.ibm.com [9.17.193.32]) by e33.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i4HGBR87611932; Mon, 17 May 2004 12:11:27 -0400
Received: from d03nm113.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by westrelay04.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i4HGBQBd188046; Mon, 17 May 2004 10:11:26 -0600
In-Reply-To: <20040517111558.1E073207E2@citi.umich.edu>
To: Jim Rees <rees@umich.edu>
Cc: nfsv4@ietf.org, nfsv4-admin@ietf.org
MIME-Version: 1.0
Subject: Re: [nfsv4] FYI: Readdir not allowed on NFS pseudo root
X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003
Message-ID: <OF249BBB67.D9139D0E-ON87256E97.0052A4B0-88256E97.0058ED34@us.ibm.com>
From: Stevan Steve Allen <scallen@us.ibm.com>
X-MIMETrack: Serialize by Router on D03NM113/03/M/IBM(Release 6.0.2CF2HF259 | March 11, 2004) at 05/17/2004 10:11:25, Serialize complete at 05/17/2004 10:11:25
Content-Type: multipart/alternative; boundary="=_alternative 0058ED2F88256E97_="
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 10:11:23 -0600
Date: Mon, 17 May 2004 10:11:23 -0600
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on ietf-mx.ietf.org
X-Spam-Status: No, hits=0.4 required=5.0 tests=AWL,HTML_20_30,HTML_MESSAGE autolearn=no version=2.60

I also suspect ACCESS is the only available READDIR response, and our 
design doc should be updated.

For NFSv3 we do not allow a mount on the flat fs root.  Mounting siblings, 
in effect, creates "disconnected" tree structures described below.  Mount 
and lookup provided the server a starting point (i.e. USER1).

The problem is due to the mentioned kernel restriction.  Where the server 
can not obtain all the parent dirs (USER1, USER2..) shown in the FSYS1 
sample below.

---- FSYS1 ----
/USER1  <-v3 mountpoint
        |- PROJ
        |- SETUP
        '- ETC

/USER2  <-v3 mountpoint
        |- PROJ
        |- SETUP
        '- ETC

/PROJECTS
        |- PROD1
        |- PROD2  <-v3 mountpoint
        '- ETC

---- FSYS2 ----
/HFS
        '- ETC  <-v3 mountpoint

Our current decision is to make the new v4 root to be the restrictive flat 
fs root (this discussion).  Where '/HFS' represents crossing a mount 
point. 

The idea of returning an empty dir list for the v4 root is interesting, if 
clients update their cached name space from lookups and mounts. 


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.

  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