1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/sys/fs
Poul-Henning Kamp 20a92a18f1 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(/).
2004-12-07 08:15:41 +00:00
..
cd9660 The remaining part of nmount/omount/rootfs mount changes. I cannot sensibly 2004-12-07 08:15:41 +00:00
coda Convert coda to nmount. 2004-12-06 19:46:02 +00:00
deadfs Back when VOP_* was introduced, we did not have new-style struct 2004-12-01 23:16:38 +00:00
devfs The remaining part of nmount/omount/rootfs mount changes. I cannot sensibly 2004-12-07 08:15:41 +00:00
fdescfs Use vfs_mountedfrom(), rely on vfs_mount.c calling VFS_STATFS(). 2004-12-06 20:02:13 +00:00
fifofs Back when VOP_* was introduced, we did not have new-style struct 2004-12-01 23:16:38 +00:00
hpfs Convert to nmount. Add backwards compat cmount method. 2004-12-06 20:14:20 +00:00
msdosfs Convert msdosfs to nmount. 2004-12-06 19:05:48 +00:00
ntfs Convert to nmount. Add omount compat. 2004-12-06 20:22:16 +00:00
nullfs Use vfs_mountedfrom(), rely on vfs_mount.c calling VFS_STATFS(). 2004-12-06 20:02:13 +00:00
nwfs Convert nwfs to nmount, but take the low road: There is no way this is 2004-12-06 20:11:56 +00:00
portalfs Convert to nmount. Add omount compat. 2004-12-06 20:23:51 +00:00
procfs Fix unvalidated pointer dereference. This is FreeBSD-SA-04:17.procfs. 2004-12-01 21:33:02 +00:00
pseudofs Use vfs_mountedfrom(). 2004-12-06 20:52:46 +00:00
smbfs Convert to nmount. Add omount compat. 2004-12-06 20:31:08 +00:00
udf ufs vfs_mountedon(), rely on vfs_mount.c calling VFS_STATFS() 2004-12-06 20:03:58 +00:00
umapfs VFS_STATFS(mp, ...) is mostly called with &mp->mnt_stat, but a few cases 2004-12-05 22:41:02 +00:00
unionfs Trust vfs_mount to call VFS_STATFS() on all mounts. 2004-12-06 20:31:36 +00:00