From owner-cvs-src@FreeBSD.ORG Sat Jul 12 20:12:49 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00EAB106574B; Sat, 12 Jul 2008 20:12:48 +0000 (UTC) (envelope-from rodrigc@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 0CD278FC12; Sat, 12 Jul 2008 20:12:48 +0000 (UTC) (envelope-from rodrigc@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m6CKClVP029627; Sat, 12 Jul 2008 20:12:47 GMT (envelope-from rodrigc@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m6CKClfx029626; Sat, 12 Jul 2008 20:12:47 GMT (envelope-from rodrigc@repoman.freebsd.org) Message-Id: <200807122012.m6CKClfx029626@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to rodrigc@repoman.freebsd.org using -f From: Craig Rodrigues Date: Sat, 12 Jul 2008 20:12:40 +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/sys/kern vfs_mount.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jul 2008 20:12:49 -0000 rodrigc 2008-07-12 20:12:40 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: SVN rev 180484 on 2008-07-12 20:12:40Z by rodrigc In nmount(), if we see "update" in the mount options, set MNT_UPDATE in fsflags, and delete the "update" option from the global mount options. MNT_UPDATE is a command, and not a property of a mount that should persist after the command is executed. We need to do similar things for MNT_FORCE and MNT_RELOAD. All mount flags are prefixed by MNT_..... it would be nice if flags which were commands were named differently from flags which are persistent properties of a mount. This was not such a big deal in the pre-nmount() days, but with nmount() it is more important. Requested by: yar MFC after: 2 weeks Revision Changes Path 1.285 +5 -4 src/sys/kern/vfs_mount.c