From owner-cvs-all@FreeBSD.ORG Tue Dec 7 08:15:42 2004 Return-Path: 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 C490B16A4CE; Tue, 7 Dec 2004 08:15:42 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8ECEF43D6E; Tue, 7 Dec 2004 08:15:42 +0000 (GMT) (envelope-from phk@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 iB78FflW049337; Tue, 7 Dec 2004 08:15:41 GMT (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iB78Ff97049336; Tue, 7 Dec 2004 08:15:41 GMT (envelope-from phk) Message-Id: <200412070815.iB78Ff97049336@repoman.freebsd.org> From: Poul-Henning Kamp Date: Tue, 7 Dec 2004 08:15:41 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/fs/devfs devfs_vnops.c src/sys/isofs/cd9660 cd9660_vfsops.c src/sys/kern init_main.c vfs_init.c vfs_mount.c vfs_subr.c src/sys/nfsclient nfs_vfsops.c src/sys/sys mount.h systm.h vnode.h src/sys/ufs/ffs ffs_vfsops.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 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: Tue, 07 Dec 2004 08:15:42 -0000 phk 2004-12-07 08:15:41 UTC FreeBSD src repository Modified files: sys/fs/devfs devfs_vnops.c sys/isofs/cd9660 cd9660_vfsops.c sys/kern init_main.c vfs_init.c vfs_mount.c vfs_subr.c sys/nfsclient nfs_vfsops.c sys/sys mount.h systm.h vnode.h sys/ufs/ffs ffs_vfsops.c Log: The remaining part of nmount/omount/rootfs mount changes. I cannot sensibly split the conversion of the remaining three filesystems out from the root mounting changes, so in one go: cd9660: Convert to nmount. Add omount compat shims. Remove dedicated rootfs mounting code. Use vfs_mountedfrom() Rely on vfs_mount.c calling VFS_STATFS() nfs(client): Convert to nmount (the simple way, mount_nfs(8) is still necessary). Add omount compat shims. Drop COMPAT_PRELITE2 mount arg compatibility. ffs: Convert to nmount. Add omount compat shims. Remove dedicated rootfs mounting code. Use vfs_mountedfrom() Rely on vfs_mount.c calling VFS_STATFS() Remove vfs_omount() method, all filesystems are now converted. Remove MNTK_WANTRDWR, handling RO/RW conversions is a filesystem task, and they all do it now. Change rootmounting to use DEVFS trampoline: vfs_mount.c: Mount devfs on /. Devfs needs no 'from' so this is clean. symlink /dev to /. This makes it possible to lookup /dev/foo. Mount "real" root filesystem on /. Surgically move the devfs mountpoint from under the real root filesystem onto /dev in the real root filesystem. Remove now unnecessary getdiskbyname(). kern_init.c: Don't do devfs mounting and rootvnode assignment here, it was already handled by vfs_mount.c. Remove now unused bdevvp(), addaliasu() and addalias(). Put the few necessary lines in devfs where they belong. This eliminates the second-last source of bogo vnodes, leaving only the lemming-syncer. Remove rootdev variable, it doesn't give meaning in a global context and was not trustworth anyway. Correct information is provided by statfs(/). Revision Changes Path 1.89 +8 -1 src/sys/fs/devfs/devfs_vnops.c 1.128 +71 -126 src/sys/isofs/cd9660/cd9660_vfsops.c 1.253 +0 -29 src/sys/kern/init_main.c 1.77 +2 -2 src/sys/kern/vfs_init.c 1.168 +211 -208 src/sys/kern/vfs_mount.c 1.556 +0 -114 src/sys/kern/vfs_subr.c 1.166 +51 -21 src/sys/nfsclient/nfs_vfsops.c 1.187 +4 -8 src/sys/sys/mount.h 1.221 +1 -1 src/sys/sys/systm.h 1.260 +0 -2 src/sys/sys/vnode.h 1.261 +57 -94 src/sys/ufs/ffs/ffs_vfsops.c