From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 31 19:51:44 2010 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F296A1065797; Tue, 31 Aug 2010 19:51:44 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout2-b.corp.re1.yahoo.com (mrout2-b.corp.re1.yahoo.com [69.147.107.21]) by mx1.freebsd.org (Postfix) with ESMTP id B242D8FC19; Tue, 31 Aug 2010 19:51:44 +0000 (UTC) Received: from [127.0.0.1] (proxy8.corp.yahoo.com [216.145.48.13]) by mrout2-b.corp.re1.yahoo.com (8.13.8/8.13.8/y.out) with ESMTP id o7VJnGka054940; Tue, 31 Aug 2010 12:49:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; s=serpent; d=yahoo-inc.com; c=nofws; q=dns; h=subject:from:reply-to:to:cc:in-reply-to:references: content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=wSWD0Nevs4y9kKmAE0zP0AcEFKLnWBozHFxQaWE6qwqVGI3Gkd8b5ushkY801v42 From: Sean Bruno To: Garrett Cooper In-Reply-To: References: <1283271393.3665.13.camel@home-yahoo> <20100831162947.GA61795@titania.njm.me.uk> <1283279563.3665.66.camel@home-yahoo> Content-Type: text/plain; charset="UTF-8" Date: Tue, 31 Aug 2010 12:49:15 -0700 Message-ID: <1283284155.3665.71.camel@home-yahoo> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-1.fc12) Content-Transfer-Encoding: 7bit Cc: "freebsd-hackers@freebsd.org" , "sbruno@freebsd.org" , Scott Long , "N.J. Mann" Subject: Re: /etc/rc.d/mountcritremote X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: sbruno@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2010 19:51:45 -0000 On Tue, 2010-08-31 at 12:27 -0700, Garrett Cooper wrote: > On Tue, Aug 31, 2010 at 11:32 AM, Sean Bruno wrote: > > On Tue, 2010-08-31 at 09:29 -0700, N.J. Mann wrote: > >> In message <1283271393.3665.13.camel@home-yahoo>, > >> Sean Bruno (seanbru@yahoo-inc.com) wrote: > >> > An issue in testing came up where we were trying to mount NFS > >> > directories from the same server, i.e. a machine trying to mount an NFS > >> > dir on itself. > >> > > >> > Because mountcritremote runs before the NFS server is up, we modified > >> > the REQUIRES section and appended nfsd. > >> > >> Is this not what the 'late' attribute in /etc/fstab is for? > >> > >> e.g. > >> > >> oberon% grep /usr/ports /etc/fstab > >> oberon:/export/usr/ports /usr/ports nfs late,rw,tcp > > Specifying `late' seems extremely unnecessary for NFS mounts. If > mountcritremote can't properly depend on nmbd, nfsd, smbd for mounting > filesystems, then it seems like a rc script dependency issue > (otherwise, mountcritremote is basically mountcritlocal, waiting for > some networking connectivity to come up, right?). Yup. That's my impression. In my user's application, they have 100's of NFS mounts, of which ONE is a local-to-the-server mount. So, in this case, I don't really want to delay the mounting, I want the mounting to succeed at the time mountcritremote is invoked. The user application is doing something silly and severely knuckle headed, but it seems it should work in the way I propose instead of mounting late in "mountlate" However, I'm pretty ignorant of the dependencies in the system of rc scripts. There may be dragons here. Sean Sean