From owner-cvs-all@FreeBSD.ORG Tue Jan 31 18:38:14 2006 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 898C116A422; Tue, 31 Jan 2006 18:38:14 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D57A43D46; Tue, 31 Jan 2006 18:38:13 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 7417191 for multiple; Tue, 31 Jan 2006 13:37:12 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k0VIc9nw085345; Tue, 31 Jan 2006 13:38:10 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Warner Losh Date: Tue, 31 Jan 2006 13:39:14 -0500 User-Agent: KMail/1.9.1 References: <20060128223343.GE2341@turion.vk2pj.dyndns.org> <20060129000818.GF2341@turion.vk2pj.dyndns.org> <20060130.102458.41650754.imp@bsdimp.com> In-Reply-To: <20060130.102458.41650754.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601311339.17828.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1263/Tue Jan 31 09:48:20 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: rodrigc@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org, cvs-src@freebsd.org, wb@freebie.xs4all.nl Subject: Re: cvs commit: src/sbin/mount Makefile extern.h mount_ufs.c 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: Tue, 31 Jan 2006 18:38:14 -0000 On Monday 30 January 2006 12:24, Warner Losh wrote: > From: Peter Jeremy > Subject: Re: cvs commit: src/sbin/mount Makefile extern.h mount_ufs.c > Date: Sun, 29 Jan 2006 11:08:18 +1100 > > > On Sat, 2006-Jan-28 23:57:00 +0100, Wilko Bulte wrote: > > >On Sun, Jan 29, 2006 at 09:33:43AM +1100, Peter Jeremy wrote.. > > > > > >> On Fri, 2006-Jan-27 21:57:25 -0800, David O'Brien wrote: > > >> >On Wed, Dec 07, 2005 at 06:40:17PM -0800, David O'Brien wrote: > > >> >> On Wed, Nov 23, 2005 at 11:22:56PM +0000, Craig Rodrigues wrote: > > >> >> > rodrigc 2005-11-23 23:22:56 UTC > > >> >> > > > >> >> > FreeBSD src repository > > >> >> > > > >> >> > Modified files: > > >> >> > sbin/mount Makefile extern.h > > >> >> > Removed files: > > >> >> > sbin/mount mount_ufs.c > > >> >> > Log: > > >> >> > Remove UFS-specific parts from mount(8). > > >> >> > For mounting UFS, all mount options are passed directly to > > >> >> > nmount(), without any UFS-specific logic. > > >> >> > > >> >> Where do we stand on making 'mount /' from single user work again? > > >> > > > >> >Can you give us an update on where you stand on making 'mount /' work > > >> >again from single user? We've been suffering from this for 2 months > > >> > now. > > >> > > >> "mount -r" also no longer works if the FS is marked "rw" in > > >> /etc/fstab. Instead you have to use "mount -o norw". How about having > > >> "ro" imply "norw" and vice versa. > > > > > >Blurk.. norw == ro and noro == rw? What is wrong with just sticking > > > with plain and simple rw and ro ? > > > > ro and rw still exist but, based on my reading of the code, the options > > you enter are appended to the options in fstab so that if you say > > "mount -r" (or "mount -o ro"), nmount(2) is passed "rw,ro" and the "rw" > > over-rides the "ro". "norw" makes mount(8) strip the "rw" and then > > nmount(2) defaults to ro. > > > > I think mount(8) needs to grow some special-casing so that it knows that > > "ro" and "rw" are complementary. > > Agreed. mount -ur / and mount -uw / need to work no matter what is in > /etc/fstab. They are heavily used in many scripts, for example, in > embedded and semi-embedded products. Those work. mount -u doesn't append to what is in fstab, but mount -r and mount -w do. I just always use mount -ur and mount -uw and those work fine. I've always used mount -uw / in single user to upgrade / to a read/write mount and that works (in my mind I'm changing an existing mount, hence using -u). David wants a simple 'mount /' to do a 'mount -uw /' to preserve old behavior where it would magically change it to an upgrade with teh fstab options maybe? I dunno, seems rather arcane to me. :) -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org