From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Subject: Re: [PATCH 0/7] Permit filesystem local caching and NFS superblock sharing [try #13] Date: Tue, 05 Sep 2006 14:38:42 +0100 Message-ID: <11346.1157463522@warthog.cambridge.redhat.com> References: <1157458817.4133.29.camel@raven.themaw.net> <1157451611.4133.22.camel@raven.themaw.net> <1157436412.3915.26.camel@raven.themaw.net> <20060901195009.187af603.akpm@osdl.org> <20060831102127.8fb9a24b.akpm@osdl.org> <20060830135503.98f57ff3.akpm@osdl.org> <20060830125239.6504d71a.akpm@osdl.org> <20060830193153.12446.24095.stgit@warthog.cambridge.redhat.com> <27414.1156970238@warthog.cambridge.redhat.com> <9849.1157018310@warthog.cambridge.redhat.com> <9534.1157116114@warthog.cambridge.redhat.com> <20060901093451.87aa486d.akpm@osdl.org> <1157130044.5632.87.camel@localhost> <28945.1157370732@warthog.cambridge.redhat.com> <1157376295.3240.13.camel@raven.themaw.net> <1157421445.5510.13.camel@localhost> <1157424937.3002.4.camel@raven.themaw.net> <1157428241.5510.72.camel@localhost> <1157429030.3915.8.camel@raven.themaw.net> <1157432039.32412.37.camel@localhost> <3698.1157449249@warthog.cambridge.redhat.com> <4987.1157452656@warthog.cambridge.redhat.com> Reply-To: Linux filesystem caching discussion list Cc: Andrew Morton , linux-kernel@vger.kernel.org, nfsv4@linux-nfs.org, Trond Myklebust , torvalds@osdl.org, linux-cachefs@redhat.com, linux-fsdevel@vger.kernel.org Return-path: In-Reply-To: <1157458817.4133.29.camel@raven.themaw.net> To: Ian Kent List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-cachefs-bounces@redhat.com Errors-To: linux-cachefs-bounces@redhat.com List-Id: linux-fsdevel.vger.kernel.org Ian Kent wrote: > > Okay, I suppose. But that still doesn't seem to deal with the case of > > creating a directory on the client that then overlays a symlink on the > > server that you can't yet access. > > We're largely performing user space actions at this point. > Wouldn't the subsequent call to mount(8) catch that? Not if you've already caused the NFS filesystem to create a "dummy" dentry that's a directory because you couldn't see that what that name corresponds to on the server is actually a symlink. > > You may also get ENOENT because you stat a symlink, though you'll get EEXIST > > from mkdir, even if there's nothing at the far end. > > Don't think this is something I need to care about either. > I can't mount on a symlink so the error return would be the correct way > to deal with it. But you might have to transit a symlink to reach the mountpoint. David