Re: [nfsv4] FYI: Readdir not allowed on NFS pseudo root
Stevan Steve Allen <scallen@us.ibm.com> Mon, 17 May 2004 18:11 UTC
Received: from optimus.ietf.org (iesg.org [132.151.1.19]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA09723 for <nfsv4-archive@odin.ietf.org>; Mon, 17 May 2004 14:11:16 -0400 (EDT)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1BPmW4-0004da-5t for nfsv4-archive@odin.ietf.org; Mon, 17 May 2004 14:07:08 -0400
Received: (from exim@localhost) by www1.ietf.org (8.12.8/8.12.8/Submit) id i4HI78CP017827 for nfsv4-archive@odin.ietf.org; Mon, 17 May 2004 14:07:08 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1BPmCl-0001nK-0O for nfsv4-web-archive@optimus.ietf.org; Mon, 17 May 2004 13:47:11 -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 NAA08048 for <nfsv4-web-archive@ietf.org>; Mon, 17 May 2004 13:47:09 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx) by ietf-mx with esmtp (Exim 4.32) id 1BPmCi-0002PD-QE for nfsv4-web-archive@ietf.org; Mon, 17 May 2004 13:47:08 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12) id 1BPmBi-00023z-00 for nfsv4-web-archive@ietf.org; Mon, 17 May 2004 13:46:07 -0400
Received: from optimus.ietf.org ([132.151.1.19]) by ietf-mx with esmtp (Exim 4.12) id 1BPmAb-0001Rr-00 for nfsv4-web-archive@ietf.org; Mon, 17 May 2004 13:44:57 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1BPm1y-0008Vf-Sp; Mon, 17 May 2004 13:36:02 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1BPlxV-0007gB-EZ for nfsv4@optimus.ietf.org; Mon, 17 May 2004 13:31:25 -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 NAA07066 for <nfsv4@ietf.org>; Mon, 17 May 2004 13:31:23 -0400 (EDT)
Received: from ietf-mx.ietf.org ([132.151.6.1] helo=ietf-mx) by ietf-mx with esmtp (Exim 4.32) id 1BPlxT-0004ck-Ac for nfsv4@ietf.org; Mon, 17 May 2004 13:31:23 -0400
Received: from exim by ietf-mx with spam-scanned (Exim 4.12) id 1BPlwf-0004Hq-00 for nfsv4@ietf.org; Mon, 17 May 2004 13:30:34 -0400
Received: from e34.co.us.ibm.com ([32.97.110.132]) by ietf-mx with esmtp (Exim 4.12) id 1BPlvm-0003lz-00; Mon, 17 May 2004 13:29:38 -0400
Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e34.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i4HHT7Wv535308; Mon, 17 May 2004 13:29:07 -0400
Received: from d03nm113.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i4HHT7BM380982; Mon, 17 May 2004 11:29:07 -0600
In-Reply-To: <40A43CAA-A811-11D8-9586-000A95DBCB70@sun.com>
To: Spencer Shepler <spencer.shepler@sun.com>
Cc: nfsv4@ietf.org, nfsv4-admin@ietf.org, Jim Rees <rees@umich.edu>
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: <OF7B086B15.5E6B8F92-ON87256E97.005CF8EF-88256E97.006009EF@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 11:29:07, Serialize complete at 05/17/2004 11:29:07
Content-Type: multipart/alternative; boundary="=_alternative 006009EB88256E97_="
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:29:04 -0700
Date: Mon, 17 May 2004 10:29:04 -0700
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on ietf-mx.ietf.org
X-Spam-Status: No, hits=0.1 required=5.0 tests=AWL, HTML_MESSAGE autolearn=no version=2.60
It may be helpful to point out that the server READDIR restriction on the v4 root can be detected by the client. Both read mode bits will be off. I'm not client savvy, but if the client creates a name space cache, the v4 pseudo root may appear as a hidden or restrictive access dir (r+w mode permission bits off, DOS hidden attr not supported). In contrast, client apps may still have r+w access to the objects contained in the v4 root dir (determined from lookup). It will be likely that lookup will return a 2nd level dir object with the read mode bits on, allowing READDIR from this point on. Initially empty (no READDIR from the root) an ideal client may build a name space cache from the restrictive root via lookup and readdirs (when read mode bits are on). Hopefully, no special treatment is needed by the client. Thanks, Stevan C. Allen 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
- [nfsv4] FYI: Readdir not allowed on NFS pseudo ro… Stevan Steve Allen
- Re: [nfsv4] FYI: Readdir not allowed on NFS pseud… Spencer Shepler
- Re: [nfsv4] FYI: Readdir not allowed on NFS pseud… Stevan Steve Allen
- Re: [nfsv4] FYI: Readdir not allowed on NFS pseud… Jim Rees
- RE: [nfsv4] FYI: Readdir not allowed on NFS pseud… Noveck, Dave
- Re: [nfsv4] FYI: Readdir not allowed on NFS pseud… Spencer Shepler
- Re: [nfsv4] FYI: Readdir not allowed on NFS pseud… Jim Rees
- Re: [nfsv4] FYI: Readdir not allowed on NFS pseud… Spencer Shepler
- Re: [nfsv4] FYI: Readdir not allowed on NFS pseud… Stevan Steve Allen
- Re: [nfsv4] FYI: Readdir not allowed on NFS pseud… Stevan Steve Allen
- Re: [nfsv4] FYI: Readdir not allowed on NFS pseud… Stevan Steve Allen
- Re: [nfsv4] FYI: Readdir not allowed on NFS pseud… Stevan Steve Allen
- Re: [nfsv4] FYI: Readdir not allowed on NFS pseud… Jim Rees
- Re: [nfsv4] FYI: Readdir not allowed on NFS pseud… Haynes, Tom
- Re: [nfsv4] FYI: Readdir not allowed on NFS pseud… Haynes, Tom
- RE: [nfsv4] FYI: Readdir not allowed on NFS pseud… Halevy, Benny