From: Jeff Moyer Subject: Re: Autofs 4 and 5 with nfs4 Date: Wed, 01 Aug 2007 14:50:54 -0400 Message-ID: References: <46A745D5.7080603@cohtech.com> <1185528235.3203.47.camel@raven.themaw.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1185528235.3203.47.camel@raven.themaw.net> (Ian Kent's message of "Fri, 27 Jul 2007 17:23:55 +0800") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: Ian Kent Cc: autofs@linux.kernel.org Ian Kent writes: > On Wed, 2007-07-25 at 13:45 +0100, Howard Wilkinson wrote: >> I have a site that is currently using NFS4 for most of its traffic. We >> have a mix of autofs4 and autofs5 clients. The following map is used >> to provide access to host filing system exports >> >> Auto.master: >> >> /hosts auto.hosts >> >> auto.hosts >> >> * >> -fstype=nfs4,tcp,rsize=32768,wsize=32768,hard,intr,nodev,nosuid &:/ >> >> This works fine in both autofs4 and autofs5 if the client is not the >> server (i.e. loopback ...) However with autofs5 this returns the root >> of the local file system not the exported nfs4 root. > > Hahaha!!! > > Yes, that's certainly something I didn't anticipate. > > Historically, all local mounts are turned into bind mounts regardless of > the options specified. I can't think of an acceptable way to do this and > still use bind mounts so we need to consider under what conditions to > not mount local mounts as bind mounts. > > I had a similar report recently and said that people expect that, if a > mount is local, it will be bind mounted for to give map independence. > > So, this is a question for the list. > What do people think? Remember the nosymlink option for automount? Well, that really meant, "don't do special handling for local mount points." We could introduce a similar option, though it would be hard to do so for only the server. >> Is there a map syntax that would work round this? Ideally I would >> like the map to be the same on all hosts, I can have different maps >> on the autofs4 and autofs5 hosts easily but would not want to have >> a separate map per host. > > No there isn't. Well, autofs4 might still honor nosymlink. I'd have to look. -Jeff