From owner-cvs-all@FreeBSD.ORG Thu Nov 1 14:09:07 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A81C16A417; Thu, 1 Nov 2007 14:09:07 +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 6C42913C4BB; Thu, 1 Nov 2007 14:09:07 +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 lA1E97B3063330; Thu, 1 Nov 2007 14:09:07 GMT (envelope-from rodrigc@repoman.freebsd.org) Received: (from rodrigc@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lA1E97Uq063329; Thu, 1 Nov 2007 14:09:07 GMT (envelope-from rodrigc) Message-Id: <200711011409.lA1E97Uq063329@repoman.freebsd.org> From: Craig Rodrigues Date: Thu, 1 Nov 2007 14:09:07 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_7 Cc: Subject: cvs commit: src/sys/kern vfs_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: Thu, 01 Nov 2007 14:09:07 -0000 rodrigc 2007-11-01 14:09:07 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/kern vfs_mount.c Log: MFC: 1.267 In nmount(), if MNT_ROOT is in the mount flags, filter it out instead of returning an error. (1) This makes the behavior consistent with mount(2). (2) This makes update mounts on the root file system work properly. (3) The explicit checks for MNT_ROOTFS in src/sbin/fsck_ffs/main.c and src/usr.sbin/mountd/mountd.c which were put in to eliminate errors during update mounts on the root file system can be removed. The only place were MNT_ROOTFS can be validly set is inside the kernel, i.e. with vfs_mountroot_try(). Approved by: re (gnn) Revision Changes Path 1.265.2.1 +13 -4 src/sys/kern/vfs_mount.c