freebsd-nq/sys/fs
Adrian Chadd f3a90da995 Reviewed by: jlemon
An initial tidyup of the mount() syscall and VFS mount code.

This code replaces the earlier work done by jlemon in an attempt to
make linux_mount() work.

* the guts of the mount work has been moved into vfs_mount().

* move `type', `path' and `flags' from being userland variables into being
  kernel variables in vfs_mount(). `data' remains a pointer into
  userspace.

* Attempt to verify the `type' and `path' strings passed to vfs_mount()
  aren't too long.

* rework mount() and linux_mount() to take the userland parameters
  (besides data, as mentioned) and pass kernel variables to vfs_mount().
  (linux_mount() already did this, I've just tidied it up a little more.)

* remove the copyin*() stuff for `path'. `data' still requires copyin*()
  since its a pointer into userland.

* set `mount->mnt_statf_mntonname' in vfs_mount() rather than in each
  filesystem.  This variable is generally initialised with `path', and
  each filesystem can override it if they want to.

* NOTE: f_mntonname is intiailised with "/" in the case of a root mount.
2001-03-01 21:00:17 +00:00
..
cd9660 Reviewed by: jlemon 2001-03-01 21:00:17 +00:00
coda Mechanical change to use <sys/queue.h> macro API instead of 2001-02-04 13:13:25 +00:00
deadfs Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
devfs Reviewed by: jlemon 2001-03-01 21:00:17 +00:00
fdescfs Reviewed by: jlemon 2001-03-01 21:00:17 +00:00
fifofs Extend kqueue down to the device layer. 2001-02-15 16:34:11 +00:00
hpfs Reviewed by: jlemon 2001-03-01 21:00:17 +00:00
msdosfs Reviewed by: jlemon 2001-03-01 21:00:17 +00:00
ntfs Reviewed by: jlemon 2001-03-01 21:00:17 +00:00
nullfs Reviewed by: jlemon 2001-03-01 21:00:17 +00:00
nwfs Reviewed by: jlemon 2001-03-01 21:00:17 +00:00
portalfs Reviewed by: jlemon 2001-03-01 21:00:17 +00:00
procfs o Move per-process jail pointer (p->pr_prison) to inside of the subject 2001-02-21 06:39:57 +00:00
specfs Extend kqueue down to the device layer. 2001-02-15 16:34:11 +00:00
umapfs Reviewed by: jlemon 2001-03-01 21:00:17 +00:00
unionfs Reviewed by: jlemon 2001-03-01 21:00:17 +00:00