From owner-cvs-all@FreeBSD.ORG Sun Feb 17 22:32:08 2008 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 84EAB16A418; Sun, 17 Feb 2008 22:32:08 +0000 (UTC) (envelope-from yar@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 6BFC813C465; Sun, 17 Feb 2008 22:32:08 +0000 (UTC) (envelope-from yar@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 m1HMW8vK095392; Sun, 17 Feb 2008 22:32:08 GMT (envelope-from yar@repoman.freebsd.org) Received: (from yar@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1HMW84Z095391; Sun, 17 Feb 2008 22:32:08 GMT (envelope-from yar) Message-Id: <200802172232.m1HMW84Z095391@repoman.freebsd.org> From: Yar Tikhiy Date: Sun, 17 Feb 2008 22:32:08 +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/nfsclient nfs_vfsops.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: Sun, 17 Feb 2008 22:32:08 -0000 yar 2008-02-17 22:32:08 UTC FreeBSD src repository Modified files: sys/nfsclient nfs_vfsops.c Log: Prevent the NFS client from losing MNT_ROOTFS on the root file system. In particular, stop overwriting mount point flags in nfs_mountdiskless() because now they are set elsewhere. (They were _initialized_ by that function in the 4.4BSD days, when mount structures were not allocated in a centralized manner -- see rev. 1.1 of this file.) Fix nfs_mount(), which happened to depend on the loss of MNT_ROOTFS when it came to update handling. Also note that mountnfs() no longer handles updates. Now they shouldn't reach this function, so printf a diagnostic message if that happens due to a coding error. Revision Changes Path 1.199 +6 -9 src/sys/nfsclient/nfs_vfsops.c