From owner-freebsd-rc@FreeBSD.ORG Mon Jul 10 11:03:21 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B99916A540 for ; Mon, 10 Jul 2006 11:03:21 +0000 (UTC) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 561B243D46 for ; Mon, 10 Jul 2006 11:03:17 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k6AB3H5n055753 for ; Mon, 10 Jul 2006 11:03:17 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k6AB3GXE055749 for freebsd-rc@freebsd.org; Mon, 10 Jul 2006 11:03:16 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 10 Jul 2006 11:03:16 GMT Message-Id: <200607101103.k6AB3GXE055749@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-rc@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jul 2006 11:03:21 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/03/03] conf/48881 rc [PATCH] The influence of /etc/start_ifnam o [2006/06/09] conf/98734 rc [patch] /etc/rc.subr restart_postcmd is f 2 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/11/12] conf/45226 rc Fix for rc.network, ppp-user annoyance o [2003/03/03] conf/48870 rc [PATCH] rc.network: allow to cancel inter o [2003/08/24] conf/55916 rc [PATCH] ppp-user options o [2003/11/04] conf/58939 rc [patch] dumb little hack for /etc/rc.fire o [2004/11/08] conf/73677 rc [patch] add support for powernow states t o [2004/12/07] conf/74817 rc [patch] network.subr: fixed automatic con o [2005/02/18] conf/77663 rc Suggestion: add /etc/rc.d/addnetswap afte o [2005/03/16] conf/78906 rc [patch] Allow mixer_enable="NO" in rc.con o [2005/03/24] conf/79196 rc [PATCH] configurable dummynet loading fr o [2005/05/14] kern/81006 rc ipnat not working with tunnel interfaces o [2005/08/27] conf/85363 rc syntax error in /etc/rc.d/devfs o [2005/09/07] conf/85819 rc [patch] script allowing multiuser mode in o [2005/11/13] conf/88913 rc [patch] wrapper support for rc.subr o [2005/11/15] conf/89061 rc [patch] IPv6 6to4 auto-configuration enha o [2005/12/03] conf/89870 rc [patch] feature request to make netif ver o [2006/01/30] conf/92523 rc [patch] allow rc scripts to kill process o [2006/02/25] conf/93815 rc [patch] Adds in the ability to save ipfw o [2006/03/31] conf/95162 rc [patch] Missing feature in rc.subr o [2006/04/26] conf/96343 rc [patch] rc.d order change to start inet6 o [2006/05/04] conf/96766 rc run_rc_command doesn't work for Python sc o [2006/05/15] conf/97311 rc [patch] /etc/rc.d/ipfilter reload can loa o [2006/06/25] conf/99444 rc [patch] Enhancement: rc.subr could easily o [2006/06/28] conf/99595 rc [PATCH] /etc/rc.d/dhclient doesn't intera o [2006/07/02] conf/99721 rc [patch] /etc/rc.initdiskless problem copy 24 problems total. From owner-freebsd-rc@FreeBSD.ORG Tue Jul 11 07:29:11 2006 Return-Path: X-Original-To: rc@freebsd.org Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A032816A4DD for ; Tue, 11 Jul 2006 07:29:11 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1515943D4C for ; Tue, 11 Jul 2006 07:29:08 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id C03082085 for ; Tue, 11 Jul 2006 09:29:04 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on tim.des.no Received: from xps.des.no (des.no [80.203.243.180]) by tim.des.no (Postfix) with ESMTP id B44102082 for ; Tue, 11 Jul 2006 09:29:04 +0200 (CEST) Received: by xps.des.no (Postfix, from userid 1001) id 81C1A33C1F; Tue, 11 Jul 2006 09:29:04 +0200 (CEST) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: rc@freebsd.org Date: Tue, 11 Jul 2006 09:29:04 +0200 Message-ID: <86odvwzjjz.fsf@xps.des.no> User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: loopback mounts X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jul 2006 07:29:11 -0000 It is currently not possible to list loopback NFS mounts in /etc/fstab without noauto, because mountcritremote runs before mountd has started; mountd depends on nfsserver, rpcbind and quota, which all depend on mountcritremote (presumably because nfsd, rpcbind and quotaon all reside in /usr/sbin, which might be on a remote file system) The file systems which I mount over loopback NFS are not critical, and can safely be mounted later in the boot process, but we don't have a "mountnoncrit" script, or any way to indicate in fstab that a file system is non-critical. Any suggestions? DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-rc@FreeBSD.ORG Tue Jul 11 15:53:16 2006 Return-Path: X-Original-To: rc@freebsd.org Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A26DC16A4DA for ; Tue, 11 Jul 2006 15:53:16 +0000 (UTC) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52A7D43D46 for ; Tue, 11 Jul 2006 15:53:16 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id k6BFrDZe024440; Tue, 11 Jul 2006 08:53:13 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id k6BFrDDe024439; Tue, 11 Jul 2006 08:53:13 -0700 Date: Tue, 11 Jul 2006 08:53:13 -0700 From: Brooks Davis To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= Message-ID: <20060711155312.GA20418@odin.ac.hmc.edu> References: <86odvwzjjz.fsf@xps.des.no> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u3/rZRmxL6MmkK24" Content-Disposition: inline In-Reply-To: <86odvwzjjz.fsf@xps.des.no> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new Cc: rc@freebsd.org Subject: Re: loopback mounts X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jul 2006 15:53:16 -0000 --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 11, 2006 at 09:29:04AM +0200, Dag-Erling Sm=F8rgrav wrote: > It is currently not possible to list loopback NFS mounts in /etc/fstab > without noauto, because mountcritremote runs before mountd has > started; mountd depends on nfsserver, rpcbind and quota, which all > depend on mountcritremote (presumably because nfsd, rpcbind and > quotaon all reside in /usr/sbin, which might be on a remote file > system) >=20 > The file systems which I mount over loopback NFS are not critical, and > can safely be mounted later in the boot process, but we don't have a > "mountnoncrit" script, or any way to indicate in fstab that a file > system is non-critical. In many ways a mountnoncrit would be the best solution, but that would would require some significant work since we'd probably need to add an extra fields to fstab (though it might be feasible to have a list of critical file systems and try to mount them explicitly instead). A small bit of additional care would be needed to insure that early_late_divider was set correctly in either case. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --u3/rZRmxL6MmkK24 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFEs8lnXY6L6fI4GtQRAnjvAJ9OhggpGSFTktqxfP5ARvziDHLxlgCg46Va MSraCfAVcQgi96jovOU1ywY= =66oo -----END PGP SIGNATURE----- --u3/rZRmxL6MmkK24-- From owner-freebsd-rc@FreeBSD.ORG Tue Jul 11 16:08:15 2006 Return-Path: X-Original-To: rc@freebsd.org Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F22F16A4DD for ; Tue, 11 Jul 2006 16:08:15 +0000 (UTC) (envelope-from flz@xbsd.org) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 545C043DB2 for ; Tue, 11 Jul 2006 16:07:50 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by smtp5-g19.free.fr (Postfix) with ESMTP id E3ED227539; Tue, 11 Jul 2006 18:07:46 +0200 (CEST) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id C946711774; Tue, 11 Jul 2006 18:07:45 +0200 (CEST) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 43671-10; Tue, 11 Jul 2006 18:06:56 +0200 (CEST) Received: from mayday.esat.net (mayday.esat.net [193.95.134.156]) by smtp.xbsd.org (Postfix) with ESMTP id 3411A11472; Tue, 11 Jul 2006 18:06:49 +0200 (CEST) From: Florent Thoumie To: Brooks Davis In-Reply-To: <20060711155312.GA20418@odin.ac.hmc.edu> References: <86odvwzjjz.fsf@xps.des.no> <20060711155312.GA20418@odin.ac.hmc.edu> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-8y9KqugzwFh8MvttjcxK" Date: Tue, 11 Jul 2006 17:07:07 +0100 Message-Id: <1152634027.12237.9.camel@mayday.esat.net> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 FreeBSD GNOME Team Port X-Virus-Scanned: amavisd-new at xbsd.org Cc: Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?= , rc@freebsd.org Subject: Re: loopback mounts X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jul 2006 16:08:15 -0000 --=-8y9KqugzwFh8MvttjcxK Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, 2006-07-11 at 08:53 -0700, Brooks Davis wrote: > On Tue, Jul 11, 2006 at 09:29:04AM +0200, Dag-Erling Sm=F8rgrav wrote: > > It is currently not possible to list loopback NFS mounts in /etc/fstab > > without noauto, because mountcritremote runs before mountd has > > started; mountd depends on nfsserver, rpcbind and quota, which all > > depend on mountcritremote (presumably because nfsd, rpcbind and > > quotaon all reside in /usr/sbin, which might be on a remote file > > system) > >=20 > > The file systems which I mount over loopback NFS are not critical, and > > can safely be mounted later in the boot process, but we don't have a > > "mountnoncrit" script, or any way to indicate in fstab that a file > > system is non-critical. >=20 > In many ways a mountnoncrit would be the best solution, but that > would would require some significant work since we'd probably need to > add an extra fields to fstab (though it might be feasible to have > a list of critical file systems and try to mount them explicitly > instead). A small bit of additional care would be needed to insure that > early_late_divider was set correctly in either case. Yeah, pondered adding a mountlatelocal script and a 'late' option to mount/fstab when i was working on mdconfig{,2} script. I figured it was easier to handle fsck/mount in those scripts in the end (because I couldn't see any other consumer for such a script). In that case, that seems a good choice. --=20 Florent Thoumie flz@FreeBSD.org FreeBSD Committer --=-8y9KqugzwFh8MvttjcxK Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEs8yrMxEkbVFH3PQRAgpRAJ0Ro58OdYM+4p1zL9RUKHxexeP6MgCfZkvu c64K0k2OMq7hMB1ESz5KO/M= =BtLw -----END PGP SIGNATURE----- --=-8y9KqugzwFh8MvttjcxK-- From owner-freebsd-rc@FreeBSD.ORG Tue Jul 11 16:47:55 2006 Return-Path: X-Original-To: rc@freebsd.org Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 503C516A4E0 for ; Tue, 11 Jul 2006 16:47:55 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6768543DD3 for ; Tue, 11 Jul 2006 16:47:35 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 62A542087; Tue, 11 Jul 2006 18:47:31 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.1/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on tim.des.no Received: from xps.des.no (des.no [80.203.243.180]) by tim.des.no (Postfix) with ESMTP id 565D22082; Tue, 11 Jul 2006 18:47:31 +0200 (CEST) Received: by xps.des.no (Postfix, from userid 1001) id 4372333C1F; Tue, 11 Jul 2006 18:47:31 +0200 (CEST) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: Brooks Davis References: <86odvwzjjz.fsf@xps.des.no> <20060711155312.GA20418@odin.ac.hmc.edu> Date: Tue, 11 Jul 2006 18:47:30 +0200 In-Reply-To: <20060711155312.GA20418@odin.ac.hmc.edu> (Brooks Davis's message of "Tue, 11 Jul 2006 08:53:13 -0700") Message-ID: <86ac7gqeal.fsf@xps.des.no> User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: rc@freebsd.org Subject: Re: loopback mounts X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jul 2006 16:47:55 -0000 Brooks Davis writes: > In many ways a mountnoncrit would be the best solution, but that > would would require some significant work since we'd probably need to > add an extra fields to fstab [...] You don't need any extra fields - just add "late" to the options column and teach mount(8) to ignore it. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-rc@FreeBSD.ORG Tue Jul 11 16:54:12 2006 Return-Path: X-Original-To: rc@freebsd.org Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2743316A501 for ; Tue, 11 Jul 2006 16:54:12 +0000 (UTC) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4A6943D93 for ; Tue, 11 Jul 2006 16:54:11 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id k6BGs94S000766; Tue, 11 Jul 2006 09:54:09 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id k6BGs9mn000765; Tue, 11 Jul 2006 09:54:09 -0700 Date: Tue, 11 Jul 2006 09:54:09 -0700 From: Brooks Davis To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= Message-ID: <20060711165409.GA459@odin.ac.hmc.edu> References: <86odvwzjjz.fsf@xps.des.no> <20060711155312.GA20418@odin.ac.hmc.edu> <86ac7gqeal.fsf@xps.des.no> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline In-Reply-To: <86ac7gqeal.fsf@xps.des.no> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new Cc: rc@freebsd.org Subject: Re: loopback mounts X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jul 2006 16:54:12 -0000 --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 11, 2006 at 06:47:30PM +0200, Dag-Erling Sm=F8rgrav wrote: > Brooks Davis writes: > > In many ways a mountnoncrit would be the best solution, but that > > would would require some significant work since we'd probably need to > > add an extra fields to fstab [...] >=20 > You don't need any extra fields - just add "late" to the options > column and teach mount(8) to ignore it. Sorry, poor terminology on my part. That's what I meant to suggest. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --UlVJffcvxoiEqYs2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD4DBQFEs9ewXY6L6fI4GtQRAlXKAJiWtIUDOk8A3wg26C13J/t2/eDYAKDUhMqz xv33GHRpCG3JSsdHImuMwQ== =i2Xl -----END PGP SIGNATURE----- --UlVJffcvxoiEqYs2-- From owner-freebsd-rc@FreeBSD.ORG Tue Jul 11 17:00:42 2006 Return-Path: X-Original-To: rc@freebsd.org Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96AD716A4E2 for ; Tue, 11 Jul 2006 17:00:42 +0000 (UTC) (envelope-from flz@xbsd.org) Received: from smtp3-g19.free.fr (smtp3-g19.free.fr [212.27.42.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 675DB43D7C for ; Tue, 11 Jul 2006 17:00:41 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by smtp3-g19.free.fr (Postfix) with ESMTP id 00028498DA; Tue, 11 Jul 2006 19:00:39 +0200 (CEST) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id 9E109117C3; Tue, 11 Jul 2006 19:00:39 +0200 (CEST) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 44552-09; Tue, 11 Jul 2006 19:00:33 +0200 (CEST) Received: from cream.stl.xbsd.org (unknown [193.120.13.130]) by smtp.xbsd.org (Postfix) with ESMTP id 1CC12116B3; Tue, 11 Jul 2006 19:00:32 +0200 (CEST) From: Florent Thoumie To: Brooks Davis In-Reply-To: <1152634027.12237.9.camel@mayday.esat.net> References: <86odvwzjjz.fsf@xps.des.no> <20060711155312.GA20418@odin.ac.hmc.edu> <1152634027.12237.9.camel@mayday.esat.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-SJLELVNeHJnl2mc/uFKP" Date: Tue, 11 Jul 2006 18:00:31 +0100 Message-Id: <1152637231.15534.0.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 FreeBSD GNOME Team Port X-Virus-Scanned: amavisd-new at xbsd.org Cc: Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?= , rc@freebsd.org Subject: Re: loopback mounts X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jul 2006 17:00:42 -0000 --=-SJLELVNeHJnl2mc/uFKP Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, 2006-07-11 at 17:07 +0100, Florent Thoumie wrote: > On Tue, 2006-07-11 at 08:53 -0700, Brooks Davis wrote: > > On Tue, Jul 11, 2006 at 09:29:04AM +0200, Dag-Erling Sm=F8rgrav wrote: > > > It is currently not possible to list loopback NFS mounts in /etc/fsta= b > > > without noauto, because mountcritremote runs before mountd has > > > started; mountd depends on nfsserver, rpcbind and quota, which all > > > depend on mountcritremote (presumably because nfsd, rpcbind and > > > quotaon all reside in /usr/sbin, which might be on a remote file > > > system) > > >=20 > > > The file systems which I mount over loopback NFS are not critical, an= d > > > can safely be mounted later in the boot process, but we don't have a > > > "mountnoncrit" script, or any way to indicate in fstab that a file > > > system is non-critical. > >=20 > > In many ways a mountnoncrit would be the best solution, but that > > would would require some significant work since we'd probably need to > > add an extra fields to fstab (though it might be feasible to have > > a list of critical file systems and try to mount them explicitly > > instead). A small bit of additional care would be needed to insure tha= t > > early_late_divider was set correctly in either case. >=20 > Yeah, pondered adding a mountlatelocal script and a 'late' option to That should read mountlate. --=20 Florent Thoumie flz@FreeBSD.org FreeBSD Committer --=-SJLELVNeHJnl2mc/uFKP Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEs9kvMxEkbVFH3PQRAjlDAJ9LdzEyLt+55VkJrLxpYkhmS4KPMgCfbLtv vT15CWrYLCUzsh3aLY9N3Vk= =EYky -----END PGP SIGNATURE----- --=-SJLELVNeHJnl2mc/uFKP-- From owner-freebsd-rc@FreeBSD.ORG Tue Jul 11 17:18:38 2006 Return-Path: X-Original-To: rc@freebsd.org Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DAE4916A4DD for ; Tue, 11 Jul 2006 17:18:38 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.FreeBSD.org (Postfix) with SMTP id 4894043D45 for ; Tue, 11 Jul 2006 17:18:38 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 1483 invoked by uid 399); 11 Jul 2006 17:18:37 -0000 Received: from localhost (HELO ?192.168.0.7?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 11 Jul 2006 17:18:37 -0000 Message-ID: <44B3DD71.5090607@FreeBSD.org> Date: Tue, 11 Jul 2006 10:18:41 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= References: <86odvwzjjz.fsf@xps.des.no> <20060711155312.GA20418@odin.ac.hmc.edu> <86ac7gqeal.fsf@xps.des.no> In-Reply-To: <86ac7gqeal.fsf@xps.des.no> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: rc@freebsd.org Subject: Re: loopback mounts X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jul 2006 17:18:38 -0000 Dag-Erling Smørgrav wrote: > Brooks Davis writes: >> In many ways a mountnoncrit would be the best solution, but that >> would would require some significant work since we'd probably need to >> add an extra fields to fstab [...] > > You don't need any extra fields - just add "late" to the options > column and teach mount(8) to ignore it. Another option would be to use a magic number in the pass number field. Doug From owner-freebsd-rc@FreeBSD.ORG Wed Jul 12 09:25:58 2006 Return-Path: X-Original-To: rc@freebsd.org Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50EFF16A4DA; Wed, 12 Jul 2006 09:25:58 +0000 (UTC) (envelope-from flz@xbsd.org) Received: from smtp3-g19.free.fr (smtp3-g19.free.fr [212.27.42.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9663343D45; Wed, 12 Jul 2006 09:25:57 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by smtp3-g19.free.fr (Postfix) with ESMTP id 491B68685; Wed, 12 Jul 2006 11:25:56 +0200 (CEST) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id 83DC9117BB; Wed, 12 Jul 2006 11:25:55 +0200 (CEST) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 63528-01; Wed, 12 Jul 2006 11:25:40 +0200 (CEST) Received: from mayday.esat.net (mayday.esat.net [193.95.134.156]) by smtp.xbsd.org (Postfix) with ESMTP id A4AEF11472; Wed, 12 Jul 2006 11:25:37 +0200 (CEST) From: Florent Thoumie To: Doug Barton In-Reply-To: <44B3DD71.5090607@FreeBSD.org> References: <86odvwzjjz.fsf@xps.des.no> <20060711155312.GA20418@odin.ac.hmc.edu> <86ac7gqeal.fsf@xps.des.no> <44B3DD71.5090607@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-VeR5yB+cBK9Kfb2m5sMD" Date: Wed, 12 Jul 2006 10:26:01 +0100 Message-Id: <1152696361.12237.15.camel@mayday.esat.net> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 FreeBSD GNOME Team Port X-Virus-Scanned: amavisd-new at xbsd.org Cc: Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?= , rc@freebsd.org Subject: Re: loopback mounts X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jul 2006 09:25:58 -0000 --=-VeR5yB+cBK9Kfb2m5sMD Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, 2006-07-11 at 10:18 -0700, Doug Barton wrote: > Dag-Erling Sm=F8rgrav wrote: > > Brooks Davis writes: > >> In many ways a mountnoncrit would be the best solution, but that > >> would would require some significant work since we'd probably need to > >> add an extra fields to fstab [...] > >=20 > > You don't need any extra fields - just add "late" to the options > > column and teach mount(8) to ignore it. >=20 > Another option would be to use a magic number in the pass number field. Sounds a bit hack-ish :-) --=20 Florent Thoumie flz@FreeBSD.org FreeBSD Committer --=-VeR5yB+cBK9Kfb2m5sMD Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEtMApMxEkbVFH3PQRAmGgAJ9jD/4ljWD7CnBEc+iYH/HNUm8PbgCcCxju /ynxO7ml7zb7mk9Ja3lX8Pw= =Rh56 -----END PGP SIGNATURE----- --=-VeR5yB+cBK9Kfb2m5sMD-- From owner-freebsd-rc@FreeBSD.ORG Wed Jul 12 10:33:09 2006 Return-Path: X-Original-To: rc@freebsd.org Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EE4E16A4DA for ; Wed, 12 Jul 2006 10:33:09 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E45343D94 for ; Wed, 12 Jul 2006 10:32:51 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id D624F2085; Wed, 12 Jul 2006 12:32:46 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.1/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on tim.des.no Received: from xps.des.no (des.no [80.203.243.180]) by tim.des.no (Postfix) with ESMTP id 525872082; Wed, 12 Jul 2006 12:32:46 +0200 (CEST) Received: by xps.des.no (Postfix, from userid 1001) id 1A62D33C31; Wed, 12 Jul 2006 12:32:46 +0200 (CEST) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: Brooks Davis References: <86odvwzjjz.fsf@xps.des.no> <20060711155312.GA20418@odin.ac.hmc.edu> <86ac7gqeal.fsf@xps.des.no> <20060711165409.GA459@odin.ac.hmc.edu> Date: Wed, 12 Jul 2006 12:32:45 +0200 In-Reply-To: <20060711165409.GA459@odin.ac.hmc.edu> (Brooks Davis's message of "Tue, 11 Jul 2006 09:54:09 -0700") Message-ID: <86hd1ndsfm.fsf@xps.des.no> User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Cc: rc@freebsd.org Subject: Re: loopback mounts X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jul 2006 10:33:09 -0000 --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Brooks Davis writes: > On Tue, Jul 11, 2006 at 06:47:30PM +0200, Dag-Erling Sm=F8rgrav wrote: > > You don't need any extra fields - just add "late" to the options > > column and teach mount(8) to ignore it. > Sorry, poor terminology on my part. That's what I meant to suggest. OK, see attached patch. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=mountlate.diff Index: sbin/mount/mount.8 =================================================================== RCS file: /home/ncvs/src/sbin/mount/mount.8,v retrieving revision 1.77 diff -u -r1.77 mount.8 --- sbin/mount/mount.8 19 May 2006 00:04:18 -0000 1.77 +++ sbin/mount/mount.8 12 Jul 2006 06:43:28 -0000 @@ -28,7 +28,7 @@ .\" @(#)mount.8 8.8 (Berkeley) 6/16/94 .\" $FreeBSD: src/sbin/mount/mount.8,v 1.77 2006/05/19 00:04:18 rodrigc Exp $ .\" -.Dd November 26, 2004 +.Dd July 12, 2006 .Dt MOUNT 8 .Os .Sh NAME @@ -36,7 +36,7 @@ .Nd mount file systems .Sh SYNOPSIS .Nm -.Op Fl adfpruvw +.Op Fl adflpruvw .Op Fl F Ar fstab .Op Fl o Ar options .Op Fl t Ar ufs | external_type @@ -78,7 +78,12 @@ are mounted. Exceptions are those marked as .Dq noauto , -excluded by the +those marked as +.Dq late +(unless the +.Fl l +option was specified), +those excluded by the .Fl t flag (see below), or if they are already mounted (except the root file system which is always remounted to preserve @@ -101,6 +106,15 @@ Also forces the R/W mount of an unclean file system (dangerous; use with caution). +.It Fl l +When used in conjunction with the +.Fl a +option, also mount those file systems which are marked as +.Dq late . +.Xr fstab 5 +marked as +.Dq late +are mounted. .It Fl o Options are specified with a .Fl o @@ -142,6 +156,13 @@ flag, this is the same as specifying all the options listed in the .Xr fstab 5 file for the file system. +.It Cm late +This file system should be skipped when +.Nm is run with the +.Fl a +flag but without the +.Fl l +flag. .It Cm multilabel Enable multi-label Mandatory Access Control, or MAC, on the specified file system. Index: sbin/mount/mount.c =================================================================== RCS file: /home/ncvs/src/sbin/mount/mount.c,v retrieving revision 1.87 diff -u -r1.87 mount.c --- sbin/mount/mount.c 10 Jun 2006 01:44:57 -0000 1.87 +++ sbin/mount/mount.c 12 Jul 2006 06:40:26 -0000 @@ -191,17 +191,17 @@ struct statfs *mntbuf; FILE *mountdfp; pid_t pid; - int all, ch, i, init_flags, mntsize, rval, have_fstab; + int all, ch, i, init_flags, late, mntsize, rval, have_fstab; char *cp, *ep, *options; options = strdup("noro"); if (options == NULL) errx(1, "malloc failed"); - all = init_flags = 0; + all = init_flags = late = 0; vfslist = NULL; vfstype = "ufs"; - while ((ch = getopt(argc, argv, "adF:fo:prwt:uv")) != -1) + while ((ch = getopt(argc, argv, "adlF:fo:prwt:uv")) != -1) switch (ch) { case 'a': all = 1; @@ -215,6 +215,9 @@ case 'f': init_flags |= MNT_FORCE; break; + case 'l': + late = 1; + break; case 'o': options = catopt(options, optarg); break; @@ -265,6 +268,8 @@ continue; if (hasopt(fs->fs_mntops, "noauto")) continue; + if (hasopt(fs->fs_mntops, "late") && !late) + continue; if (!(init_flags & MNT_UPDATE) && ismounted(fs, mntbuf, mntsize)) continue; @@ -628,6 +633,15 @@ * not a real mount option. */ continue; + } else if (strcmp(p, "late") == 0) { + /* + * "late" is used to prevent certain file + * systems from being mounted before late + * in the boot cycle; for instance, + * loopback NFS mounts can't be mounted + * before mountd starts. + */ + continue; } else if (strcmp(p, "userquota") == 0) { continue; } else if (strncmp(p, userquotaeq, @@ -737,7 +751,7 @@ { (void)fprintf(stderr, "%s\n%s\n%s\n", -"usage: mount [-adfpruvw] [-F fstab] [-o options] [-t ufs | external_type]", +"usage: mount [-adflpruvw] [-F fstab] [-o options] [-t ufs | external_type]", " mount [-dfpruvw] special | node", " mount [-dfpruvw] [-o options] [-t ufs | external_type] special node"); exit(1); Index: etc/rc.d/Makefile =================================================================== RCS file: /home/ncvs/src/etc/rc.d/Makefile,v retrieving revision 1.73 diff -u -r1.73 Makefile --- etc/rc.d/Makefile 1 Jun 2006 11:01:54 -0000 1.73 +++ etc/rc.d/Makefile 12 Jul 2006 07:17:35 -0000 @@ -21,7 +21,7 @@ jail \ kadmind kerberos kernel keyserv kldxref kpasswdd \ ldconfig local localpkg lpd \ - mixer motd mountcritlocal mountcritremote \ + mixer motd mountcritlocal mountcritremote mountlate \ mdconfig mdconfig2 mountd moused mroute6d mrouted msgs \ named natd netif netoptions \ network_ipv6 newsyslog nfsclient nfsd \ Index: etc/rc.d/mountlate =================================================================== RCS file: etc/rc.d/mountlate diff -N etc/rc.d/mountlate --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ etc/rc.d/mountlate 12 Jul 2006 07:17:13 -0000 @@ -0,0 +1,34 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: mountlate +# REQUIRE: mountd +# BEFORE: DAEMON +# KEYWORD: nojail + +. /etc/rc.subr + +name="mountlate" +start_cmd="mountlate_start" +stop_cmd=":" + +mountlate_start() +{ + # Mount "late" filesystems. + mount -a -l + + case $? in + 0) + ;; + *) + echo 'Mounting /etc/fstab filesystems failed,' \ + ' startup aborted' + kill -QUIT $$ + ;; + esac +} + +load_rc_config $name +run_rc_command "$1" --=-=-=-- From owner-freebsd-rc@FreeBSD.ORG Wed Jul 12 10:50:36 2006 Return-Path: X-Original-To: rc@freebsd.org Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 303ED16A4E2 for ; Wed, 12 Jul 2006 10:50:36 +0000 (UTC) (envelope-from flz@xbsd.org) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34E2043D4C for ; Wed, 12 Jul 2006 10:50:35 +0000 (GMT) (envelope-from flz@xbsd.org) Received: from smtp.xbsd.org (xbsd.org [82.233.2.192]) by smtp5-g19.free.fr (Postfix) with ESMTP id ECBA627539; Wed, 12 Jul 2006 12:50:33 +0200 (CEST) Received: from localhost (localhost.xbsd.org [127.0.0.1]) by smtp.xbsd.org (Postfix) with ESMTP id 0B4C211783; Wed, 12 Jul 2006 12:50:32 +0200 (CEST) Received: from smtp.xbsd.org ([127.0.0.1]) by localhost (srv1.xbsd.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 64314-06; Wed, 12 Jul 2006 12:50:26 +0200 (CEST) Received: from mayday.esat.net (mayday.esat.net [193.95.134.156]) by smtp.xbsd.org (Postfix) with ESMTP id 6194D11AA7; Wed, 12 Jul 2006 12:50:25 +0200 (CEST) From: Florent Thoumie To: Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?= In-Reply-To: <86hd1ndsfm.fsf@xps.des.no> References: <86odvwzjjz.fsf@xps.des.no> <20060711155312.GA20418@odin.ac.hmc.edu> <86ac7gqeal.fsf@xps.des.no> <20060711165409.GA459@odin.ac.hmc.edu> <86hd1ndsfm.fsf@xps.des.no> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-29TFKx+uN3hhBGjUWyf1" Date: Wed, 12 Jul 2006 11:50:49 +0100 Message-Id: <1152701449.12237.19.camel@mayday.esat.net> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 FreeBSD GNOME Team Port X-Virus-Scanned: amavisd-new at xbsd.org Cc: rc@freebsd.org Subject: Re: loopback mounts X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jul 2006 10:50:36 -0000 --=-29TFKx+uN3hhBGjUWyf1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, 2006-07-12 at 12:32 +0200, Dag-Erling Sm=F8rgrav wrote: > Brooks Davis writes: > > On Tue, Jul 11, 2006 at 06:47:30PM +0200, Dag-Erling Sm=F8rgrav wrote: > > > You don't need any extra fields - just add "late" to the options > > > column and teach mount(8) to ignore it. > > Sorry, poor terminology on my part. That's what I meant to suggest. >=20 > OK, see attached patch. Looks fine. I'd just add a 'echo "Mounting late file systems:"' before the call to mount in the rc.d script, to be consistent with mountcritremote (but, then it's not consistent with mountcritlocal anymore). Seems reasonable to add 'echo "Mounting critical local file systems:"' in mountcritlocal as well. --=20 Florent Thoumie flz@FreeBSD.org FreeBSD Committer --=-29TFKx+uN3hhBGjUWyf1 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEtNQJMxEkbVFH3PQRAkhuAJ9v31GnvBvTJaeoNFJr3UZFd3JGvwCeNy9a XNJWbo2PdJch7UQmiJOX09I= =pF67 -----END PGP SIGNATURE----- --=-29TFKx+uN3hhBGjUWyf1-- From owner-freebsd-rc@FreeBSD.ORG Wed Jul 12 15:38:33 2006 Return-Path: X-Original-To: rc@freebsd.org Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 066F416A4DD for ; Wed, 12 Jul 2006 15:38:33 +0000 (UTC) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9414643D4C for ; Wed, 12 Jul 2006 15:38:32 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id k6CFcUNL013960; Wed, 12 Jul 2006 08:38:30 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id k6CFcTM1013959; Wed, 12 Jul 2006 08:38:29 -0700 Date: Wed, 12 Jul 2006 08:38:29 -0700 From: Brooks Davis To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= Message-ID: <20060712153829.GC11485@odin.ac.hmc.edu> References: <86odvwzjjz.fsf@xps.des.no> <20060711155312.GA20418@odin.ac.hmc.edu> <86ac7gqeal.fsf@xps.des.no> <20060711165409.GA459@odin.ac.hmc.edu> <86hd1ndsfm.fsf@xps.des.no> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dkEUBIird37B8yKS" Content-Disposition: inline In-Reply-To: <86hd1ndsfm.fsf@xps.des.no> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new Cc: rc@freebsd.org Subject: Re: loopback mounts X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jul 2006 15:38:33 -0000 --dkEUBIird37B8yKS Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 12, 2006 at 12:32:45PM +0200, Dag-Erling Sm=F8rgrav wrote: > Brooks Davis writes: > > On Tue, Jul 11, 2006 at 06:47:30PM +0200, Dag-Erling Sm=F8rgrav wrote: > > > You don't need any extra fields - just add "late" to the options > > > column and teach mount(8) to ignore it. > > Sorry, poor terminology on my part. That's what I meant to suggest. >=20 > OK, see attached patch. Looks good to me. We may eventually want to add a fscklate as well, but this patch is good as is. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --dkEUBIird37B8yKS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFEtRd0XY6L6fI4GtQRAo8GAKClWSrVulkl/Ur0i73w3qWNmIPY2gCfdTL3 V5l1yVmGq0G2nfeYkV98+gE= =Hfnj -----END PGP SIGNATURE----- --dkEUBIird37B8yKS-- From owner-freebsd-rc@FreeBSD.ORG Wed Jul 12 17:14:04 2006 Return-Path: X-Original-To: rc@freebsd.org Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E95516A4DD for ; Wed, 12 Jul 2006 17:14:04 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.FreeBSD.org (Postfix) with SMTP id EA2E543D58 for ; Wed, 12 Jul 2006 17:14:03 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 1592 invoked by uid 399); 12 Jul 2006 17:14:01 -0000 Received: from localhost (HELO ?192.168.0.7?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 12 Jul 2006 17:14:01 -0000 Message-ID: <44B52DE0.10406@FreeBSD.org> Date: Wed, 12 Jul 2006 10:14:08 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Florent Thoumie References: <86odvwzjjz.fsf@xps.des.no> <20060711155312.GA20418@odin.ac.hmc.edu> <86ac7gqeal.fsf@xps.des.no> <44B3DD71.5090607@FreeBSD.org> <1152696361.12237.15.camel@mayday.esat.net> In-Reply-To: <1152696361.12237.15.camel@mayday.esat.net> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= , rc@freebsd.org Subject: Re: loopback mounts X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jul 2006 17:14:04 -0000 Florent Thoumie wrote: > On Tue, 2006-07-11 at 10:18 -0700, Doug Barton wrote: >> Dag-Erling Smørgrav wrote: >>> Brooks Davis writes: >>>> In many ways a mountnoncrit would be the best solution, but that >>>> would would require some significant work since we'd probably need to >>>> add an extra fields to fstab [...] >>> You don't need any extra fields - just add "late" to the options >>> column and teach mount(8) to ignore it. >> Another option would be to use a magic number in the pass number field. > > Sounds a bit hack-ish :-) I don't necessarily disagree with you, but it's less dangerous during the transition than needing a special mount binary that knows how to ignore an option. Doug -- This .signature sanitized for your protection From owner-freebsd-rc@FreeBSD.ORG Wed Jul 12 18:21:01 2006 Return-Path: X-Original-To: rc@freebsd.org Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6648E16A532 for ; Wed, 12 Jul 2006 18:21:01 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.FreeBSD.org (Postfix) with SMTP id 87A6443D49 for ; Wed, 12 Jul 2006 18:21:00 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 29822 invoked by uid 399); 12 Jul 2006 18:20:59 -0000 Received: from localhost (HELO ?192.168.0.7?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 12 Jul 2006 18:20:59 -0000 Message-ID: <44B53D94.2010602@FreeBSD.org> Date: Wed, 12 Jul 2006 11:21:08 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= References: <86odvwzjjz.fsf@xps.des.no> <20060711155312.GA20418@odin.ac.hmc.edu> <86ac7gqeal.fsf@xps.des.no> <20060711165409.GA459@odin.ac.hmc.edu> <86hd1ndsfm.fsf@xps.des.no> In-Reply-To: <86hd1ndsfm.fsf@xps.des.no> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: rc@freebsd.org Subject: Re: loopback mounts X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jul 2006 18:21:01 -0000 Dag-Erling Smørgrav wrote: > Index: etc/rc.d/mountlate > =================================================================== > RCS file: etc/rc.d/mountlate > diff -N etc/rc.d/mountlate > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ etc/rc.d/mountlate 12 Jul 2006 07:17:13 -0000 > @@ -0,0 +1,34 @@ > +#!/bin/sh > +# > +# $FreeBSD$ > +# > + > +# PROVIDE: mountlate > +# REQUIRE: mountd > +# BEFORE: DAEMON My preference is still to avoid adding new uses of BEFORE. I would prefer it if you changed DAEMON to REQUIRE this new script. Doug -- This .signature sanitized for your protection From owner-freebsd-rc@FreeBSD.ORG Wed Jul 12 19:56:11 2006 Return-Path: X-Original-To: rc@freebsd.org Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D6A4F16A4E9; Wed, 12 Jul 2006 19:56:11 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id EED0843D5C; Wed, 12 Jul 2006 19:56:05 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 15EEE2085; Wed, 12 Jul 2006 21:55:59 +0200 (CEST) X-Spam-Tests: AWL,UPPERCASE_25_50 X-Spam-Learn: disabled X-Spam-Score: 0.1/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on tim.des.no Received: from xps.des.no (des.no [80.203.243.180]) by tim.des.no (Postfix) with ESMTP id F0C852082; Wed, 12 Jul 2006 21:55:58 +0200 (CEST) Received: by xps.des.no (Postfix, from userid 1001) id CE11733C31; Wed, 12 Jul 2006 21:55:58 +0200 (CEST) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: Doug Barton References: <86odvwzjjz.fsf@xps.des.no> <20060711155312.GA20418@odin.ac.hmc.edu> <86ac7gqeal.fsf@xps.des.no> <20060711165409.GA459@odin.ac.hmc.edu> <86hd1ndsfm.fsf@xps.des.no> <44B53D94.2010602@FreeBSD.org> Date: Wed, 12 Jul 2006 21:55:58 +0200 In-Reply-To: <44B53D94.2010602@FreeBSD.org> (Doug Barton's message of "Wed, 12 Jul 2006 11:21:08 -0700") Message-ID: <86lkqy1ttd.fsf@xps.des.no> User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: rc@freebsd.org Subject: Re: loopback mounts X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jul 2006 19:56:11 -0000 Doug Barton writes: > My preference is still to avoid adding new uses of BEFORE. I would prefer= it > if you changed DAEMON to REQUIRE this new script. I ended up with # PROVIDE: mountlate # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: nojail to get it in the spot I wanted. If you have a better suggestion, I'm all ears. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-rc@FreeBSD.ORG Thu Jul 13 01:38:40 2006 Return-Path: X-Original-To: rc@freebsd.org Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7016316A4DA; Thu, 13 Jul 2006 01:38:40 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (12-207-12-9.client.mchsi.com [12.207.12.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FF9243D53; Thu, 13 Jul 2006 01:38:37 +0000 (GMT) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.13.6/8.13.6) with ESMTP id k6D1cSuj057619; Wed, 12 Jul 2006 20:38:29 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.13.6/8.13.6/Submit) id k6D1cRD2057618; Wed, 12 Jul 2006 20:38:27 -0500 (CDT) (envelope-from brooks) Date: Wed, 12 Jul 2006 20:38:27 -0500 From: Brooks Davis To: Dag-Erling Sm?rgrav Message-ID: <20060713013827.GA57274@lor.one-eyed-alien.net> References: <86odvwzjjz.fsf@xps.des.no> <20060711155312.GA20418@odin.ac.hmc.edu> <86ac7gqeal.fsf@xps.des.no> <20060711165409.GA459@odin.ac.hmc.edu> <86hd1ndsfm.fsf@xps.des.no> <44B53D94.2010602@FreeBSD.org> <86lkqy1ttd.fsf@xps.des.no> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline In-Reply-To: <86lkqy1ttd.fsf@xps.des.no> User-Agent: Mutt/1.5.11 Cc: rc@freebsd.org, Doug Barton Subject: Re: loopback mounts X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jul 2006 01:38:40 -0000 --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 12, 2006 at 09:55:58PM +0200, Dag-Erling Sm?rgrav wrote: > Doug Barton writes: > > My preference is still to avoid adding new uses of BEFORE. I would pref= er it > > if you changed DAEMON to REQUIRE this new script. >=20 > I ended up with >=20 > # PROVIDE: mountlate > # REQUIRE: DAEMON > # BEFORE: LOGIN > # KEYWORD: nojail >=20 > to get it in the spot I wanted. If you have a better suggestion, I'm > all ears. Doug's exact suggestion is in error. If you wanted to eliminate the BEFORE entry you would add a "REQUIRE: mountlate" to LOGIN. I don't agree with that in this case because LOGIN contains no requirements at this point other than the DAEMON one so it would be best to leave it as is until and unless a sweeping commit is made to all the files with "BEFORE: LOGIN" lines and LOGIN since I think consistance is important. -- Brooks --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFEtaQSXY6L6fI4GtQRAl5GAKDM8iBxzBHroF0yRVQVNmWtKUCBMACgxwg6 zty1rD4pGZTlUnWO7PviwuY= =KmJz -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G-- From owner-freebsd-rc@FreeBSD.ORG Thu Jul 13 04:32:19 2006 Return-Path: X-Original-To: rc@freebsd.org Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D59216A4DE for ; Thu, 13 Jul 2006 04:32:19 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.FreeBSD.org (Postfix) with SMTP id 47EF743DE3 for ; Thu, 13 Jul 2006 04:31:51 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 15186 invoked by uid 399); 13 Jul 2006 04:31:30 -0000 Received: from localhost (HELO ?192.168.0.3?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 13 Jul 2006 04:31:30 -0000 Message-ID: <44B5CCA0.4070500@FreeBSD.org> Date: Wed, 12 Jul 2006 21:31:28 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5.0.4 (X11/20060604) MIME-Version: 1.0 To: Brooks Davis References: <86odvwzjjz.fsf@xps.des.no> <20060711155312.GA20418@odin.ac.hmc.edu> <86ac7gqeal.fsf@xps.des.no> <20060711165409.GA459@odin.ac.hmc.edu> <86hd1ndsfm.fsf@xps.des.no> <44B53D94.2010602@FreeBSD.org> <86lkqy1ttd.fsf@xps.des.no> <20060713013827.GA57274@lor.one-eyed-alien.net> In-Reply-To: <20060713013827.GA57274@lor.one-eyed-alien.net> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Dag-Erling Sm?rgrav , rc@freebsd.org Subject: Re: loopback mounts X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jul 2006 04:32:19 -0000 Brooks Davis wrote: > On Wed, Jul 12, 2006 at 09:55:58PM +0200, Dag-Erling Sm?rgrav wrote: >> Doug Barton writes: >>> My preference is still to avoid adding new uses of BEFORE. I would prefer it >>> if you changed DAEMON to REQUIRE this new script. >> I ended up with >> >> # PROVIDE: mountlate >> # REQUIRE: DAEMON >> # BEFORE: LOGIN >> # KEYWORD: nojail >> >> to get it in the spot I wanted. If you have a better suggestion, I'm >> all ears. > > Doug's exact suggestion is in error. If you wanted to eliminate the > BEFORE entry you would add a "REQUIRE: mountlate" to LOGIN. He originally had it BEFORE: DAEMON. > I don't > agree with that in this case because LOGIN contains no requirements at > this point other than the DAEMON one so it would be best to leave it > as is until and unless a sweeping commit is made to all the files with > "BEFORE: LOGIN" lines and LOGIN since I think consistance is important. Ok, I'll add this to my todo list. Doug -- This .signature sanitized for your protection From owner-freebsd-rc@FreeBSD.ORG Fri Jul 14 13:59:57 2006 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E99A16A4EC; Fri, 14 Jul 2006 13:59:57 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C87C843D4C; Fri, 14 Jul 2006 13:59:56 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k6EDxuV2092916; Fri, 14 Jul 2006 13:59:56 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k6EDxu0r092912; Fri, 14 Jul 2006 13:59:56 GMT (envelope-from linimon) Date: Fri, 14 Jul 2006 13:59:56 GMT From: Mark Linimon Message-Id: <200607141359.k6EDxu0r092912@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org Cc: Subject: Re: bin/100287: /etc/rc.subr cannot deal properly with interpreted daemons whos shebang uses /usr/bin/env X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jul 2006 13:59:57 -0000 Synopsis: /etc/rc.subr cannot deal properly with interpreted daemons whos shebang uses /usr/bin/env Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Fri Jul 14 13:59:48 UTC 2006 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=100287