From owner-svn-src-all@FreeBSD.ORG Tue Nov 23 13:49:15 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECA80106564A; Tue, 23 Nov 2010 13:49:15 +0000 (UTC) (envelope-from pluknet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C05788FC0C; Tue, 23 Nov 2010 13:49:15 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id oANDnFk6032225; Tue, 23 Nov 2010 13:49:15 GMT (envelope-from pluknet@svn.freebsd.org) Received: (from pluknet@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oANDnFl2032222; Tue, 23 Nov 2010 13:49:15 GMT (envelope-from pluknet@svn.freebsd.org) Message-Id: <201011231349.oANDnFl2032222@svn.freebsd.org> From: Sergey Kandaurov Date: Tue, 23 Nov 2010 13:49:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r215747 - in head/sys: compat/freebsd32 kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2010 13:49:16 -0000 Author: pluknet Date: Tue Nov 23 13:49:15 2010 New Revision: 215747 URL: http://svn.freebsd.org/changeset/base/215747 Log: Update MNT_ROOTFS comments after changes in the root mount logic. Reported by: arundel Suggested by: marcel (phrasing) Approved by: kib (mentor) Modified: head/sys/compat/freebsd32/freebsd32_misc.c head/sys/kern/vfs_mount.c Modified: head/sys/compat/freebsd32/freebsd32_misc.c ============================================================================== --- head/sys/compat/freebsd32/freebsd32_misc.c Tue Nov 23 13:37:42 2010 (r215746) +++ head/sys/compat/freebsd32/freebsd32_misc.c Tue Nov 23 13:49:15 2010 (r215747) @@ -2365,7 +2365,8 @@ freebsd32_nmount(struct thread *td, * Filter out MNT_ROOTFS. We do not want clients of nmount() in * userspace to set this flag, but we must filter it out if we want * MNT_UPDATE on the root file system to work. - * MNT_ROOTFS should only be set in the kernel in vfs_mountroot_try(). + * MNT_ROOTFS should only be set by the kernel when mounting its + * root file system. */ uap->flags &= ~MNT_ROOTFS; Modified: head/sys/kern/vfs_mount.c ============================================================================== --- head/sys/kern/vfs_mount.c Tue Nov 23 13:37:42 2010 (r215746) +++ head/sys/kern/vfs_mount.c Tue Nov 23 13:49:15 2010 (r215747) @@ -383,7 +383,8 @@ nmount(td, uap) * Filter out MNT_ROOTFS. We do not want clients of nmount() in * userspace to set this flag, but we must filter it out if we want * MNT_UPDATE on the root file system to work. - * MNT_ROOTFS should only be set in the kernel in vfs_mountroot_try(). + * MNT_ROOTFS should only be set by the kernel when mounting its + * root file system. */ uap->flags &= ~MNT_ROOTFS; @@ -720,7 +721,8 @@ mount(td, uap) * Filter out MNT_ROOTFS. We do not want clients of mount() in * userspace to set this flag, but we must filter it out if we want * MNT_UPDATE on the root file system to work. - * MNT_ROOTFS should only be set in the kernel in vfs_mountroot_try(). + * MNT_ROOTFS should only be set by the kernel when mounting its + * root file system. */ uap->flags &= ~MNT_ROOTFS;