Date: Sat, 25 Feb 2006 00:14:39 -0500 From: Kris Kennaway <kris@obsecurity.org> To: Craig Rodrigues <rodrigc@FreeBSD.org> Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/mount mount.c Message-ID: <20060225051439.GA43508@xor.obsecurity.org> In-Reply-To: <200602250509.k1P59lcn068283@repoman.freebsd.org> References: <200602250509.k1P59lcn068283@repoman.freebsd.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Sat, Feb 25, 2006 at 05:09:47AM +0000, Craig Rodrigues wrote: > rodrigc 2006-02-25 05:09:47 UTC > > FreeBSD src repository > > Modified files: > sbin/mount mount.c > 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. > > 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 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD/+e+Wry0BWjoQKURAjblAJ98f/0pBRKXIyyMhQ3dZiXSuMAPLwCfVv9+ KYlIx80gOKyRmok73/acinw= =nm9q -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060225051439.GA43508>
