From owner-cvs-all@FreeBSD.ORG Sat Feb 25 05:14:41 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 61D2116A420; Sat, 25 Feb 2006 05:14:41 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A9F943D49; Sat, 25 Feb 2006 05:14:41 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id E7EB01A3C1F; Fri, 24 Feb 2006 21:14:40 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id DF0A2512D9; Sat, 25 Feb 2006 00:14:39 -0500 (EST) Date: Sat, 25 Feb 2006 00:14:39 -0500 From: Kris Kennaway To: Craig Rodrigues Message-ID: <20060225051439.GA43508@xor.obsecurity.org> References: <200602250509.k1P59lcn068283@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CE+1k2dSO48ffgeK" Content-Disposition: inline In-Reply-To: <200602250509.k1P59lcn068283@repoman.freebsd.org> User-Agent: Mutt/1.4.2.1i Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/mount mount.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: Sat, 25 Feb 2006 05:14:41 -0000 --CE+1k2dSO48ffgeK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 25, 2006 at 05:09:47AM +0000, Craig Rodrigues wrote: > rodrigc 2006-02-25 05:09:47 UTC >=20 > FreeBSD src repository >=20 > Modified files: > sbin/mount mount.c=20 > Log: > If we specify: mount -u (update), without specifying an > additional -r (read-only) flag or or -w (read-write) flag, > then assume we want, mount -u -w. > =20 > When doing a mount update, this will implicitly pass a "noro" mount > option down to the VFS layer. > vfs_mergeopts() in vfs_mount.c will then remove the "ro" mount option > if it exists in the mount options for a mounted file system. > This means that "mount -u" works the same as "mount -u -w" > and will convert a read-only mount to read-write. Thanks. How about mount -u -o rw and mount -u -o ro to flip ro/rw status? Kris --CE+1k2dSO48ffgeK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD/+e+Wry0BWjoQKURAjblAJ98f/0pBRKXIyyMhQ3dZiXSuMAPLwCfVv9+ KYlIx80gOKyRmok73/acinw= =nm9q -----END PGP SIGNATURE----- --CE+1k2dSO48ffgeK--