From owner-cvs-all@FreeBSD.ORG Sat Feb 25 05:09:47 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 C3CA716A420; Sat, 25 Feb 2006 05:09:47 +0000 (GMT) (envelope-from rodrigc@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B32543D46; Sat, 25 Feb 2006 05:09:47 +0000 (GMT) (envelope-from rodrigc@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1P59lIg068284; Sat, 25 Feb 2006 05:09:47 GMT (envelope-from rodrigc@repoman.freebsd.org) Received: (from rodrigc@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1P59lcn068283; Sat, 25 Feb 2006 05:09:47 GMT (envelope-from rodrigc) Message-Id: <200602250509.k1P59lcn068283@repoman.freebsd.org> From: Craig Rodrigues Date: Sat, 25 Feb 2006 05:09:47 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: 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:09:47 -0000 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. Revision Changes Path 1.82 +7 -11 src/sbin/mount/mount.c