From: Peter Staubach Subject: Re: mount.nfs: chk_mountpoint() Date: Thu, 23 Aug 2007 14:22:33 -0400 Message-ID: <46CDD069.3070608@redhat.com> References: <46CC884B.1030207@oracle.com> <46CD82A0.1000408@redhat.com> <46CDC7D0.6030803@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: Linux NFS mailing list To: chuck.lever@oracle.com Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1IOHKM-0006BZ-By for nfs@lists.sourceforge.net; Thu, 23 Aug 2007 11:22:45 -0700 Received: from mx1.redhat.com ([66.187.233.31]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1IOHKQ-0004BY-CO for nfs@lists.sourceforge.net; Thu, 23 Aug 2007 11:22:46 -0700 In-Reply-To: <46CDC7D0.6030803@oracle.com> List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net Chuck Lever wrote: > Peter Staubach wrote: >> Chuck Lever wrote: >>> Hi all- >>> >>> The recent addition of the chk_mountpoint() function in >>> utils/mount/mount.c in nfs-utils commit 3b55934b has broken a >>> particular behavior of background mounts. >>> >>> nfs(5) states that, if the "bg" option is specified, "A missing >>> mount point is treated as a timeout, to allow for nested NFS mounts." >>> >>> If I try mounting an NFS share onto a non-existent directory while >>> using the "bg" option, I now get an immediate failure: >>> >>> mount.nfs: mount point /mnt/nothere does not exist >>> >>> instead of the mount backgrounding itself to wait for /mnt/nothere >>> to show up. This is because chk_mountpoint() is causing the mount >>> request to fail immediately. >>> >>> Is the documented bg retry behavior still desirable? >> >> Isn't this what autofs is for? To be able to handle hierarchies >> of mounts? > > I think the purpose of this feature is to allow a sysadmin to specify > a set of mount points in /etc/fstab, some possibly nested. "mount -a > -tnfs" should work no matter what order the mounts in /etc/fstab are > specified. > > After all, some servers may be unresponsive when the client boots -- > the mounting order is nondeterministic; it can't be depended on, in > any event. > > We also don't know if the automounter itself depends on this feature. Autofs depending upon this feature would be a large mistake. IMHO, of course. :-) I don't think that it does. But your explanation makes sense, although we should be moving people away from static mounts in fstab and towards dynamic mounting via autofs. Ian and Jeff have made autofs much, much better in recent times. Improving autofs further to make it only mount file systems which are actually referenced would make it even better. How do we find out whether we need to continue supporting this semantic or whether we can do away with it? Clearly, if it was busted, then not many people were depending upon it because there didn't seem to be any hue and cry about it not working. Thanx... ps ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs