Date: Tue, 7 Dec 2004 08:15:41 +0000 (UTC) From: Poul-Henning Kamp <phk@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org 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 Message-ID: <200412070815.iB78Ff97049336@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412070815.iB78Ff97049336>