From owner-cvs-all@FreeBSD.ORG Mon Dec 5 06:37:44 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC62716A41F; Mon, 5 Dec 2005 06:37:44 +0000 (GMT) (envelope-from bde@zeta.org.au) Received: from mailout1.pacific.net.au (mailout1.pacific.net.au [61.8.0.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1915B43D62; Mon, 5 Dec 2005 06:37:43 +0000 (GMT) (envelope-from bde@zeta.org.au) Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87]) by mailout1.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id jB56bYpb032153; Mon, 5 Dec 2005 17:37:34 +1100 Received: from epsplex.bde.org (katana.zip.com.au [61.8.7.246]) by mailproxy2.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id jB56bVKp009025; Mon, 5 Dec 2005 17:37:32 +1100 Date: Mon, 5 Dec 2005 17:37:31 +1100 (EST) From: Bruce Evans X-X-Sender: bde@epsplex.bde.org To: Kevin Oberman In-Reply-To: <20051204224859.90C4A5D04@ptavv.es.net> Message-ID: <20051205170246.V1582@epsplex.bde.org> References: <20051204224859.90C4A5D04@ptavv.es.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: rodrigc@FreeBSD.org, src-committers@FreeBSD.org, Pawel Jakub Dawidek , cvs-src@FreeBSD.org, cvs-all@FreeBSD.org, Ruslan Ermilov Subject: Re: cvs commit: src/etc/rc.d root X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 06:37:45 -0000 On Sun, 4 Dec 2005, Kevin Oberman wrote: >> Date: Sat, 3 Dec 2005 16:25:28 +0100 >> From: Pawel Jakub Dawidek >> Sender: owner-cvs-all@freebsd.org >> >> On Fri, Dec 02, 2005 at 09:33:43PM +0000, Ruslan Ermilov wrote: >> +> ru 2005-12-02 21:33:43 UTC >> +> >> +> FreeBSD src repository >> +> >> +> Modified files: >> +> etc/rc.d root >> +> Log: >> [...] >> +> "-u" no longer causes the transition from RO to RW, >> +> now that mount(8) was converted to use nmount(2), so >> +> an explicit change to RW is required. Keep up with >> +> this change, and use "-uw" to mount root read-write. Er, rc.d/root already had the explicit change (it said -u -o rw, not just -u). >> >> I really don't know how we can drop support for '-u'. >> IMHO this is very widely used and will be a real PITA for users. >> I also never saw '-uw' before (I always used just '-u'). >> >> Are you guys also volunteering to fix FreeBSD documentation?:) >> >> I really, really do think that this is a very bad idea. I agree. > Among the many places this needs to be changed is in the system upgrade > instructions in /usr/src/UPDATING. I've been typing 'mount -u /' for so > many years that it will take some time to re-program my neurons, > too. :-( I've always used "mount /". mount(8) knows that "/" is special and always sets MNT_UPDATE for it. I think it then gets defaults from fstab, so "/" gets mounted rw unless fstab says that it is ro. This advantage of actually always working, unlike "mount -u /", "mount -u -o rw /", "mount -u -o noro /" and "mount -uw /", since the last 4 commands clobber all options that aren't specified on the command line (the empty set of options on the command line in "mount -u /" workse by clobbering the ro options). You have to say something like "mount -u -o fstab,noro" or "mount -u -o current,noro" to fetch or preserve when just changing ro to rw. (It seems to be necessary to use noro when fstab or current set ro -- rw doesn't seem to cancel ro.) The implicit -u -ofstab only works for "/". Bruce