freebsd-nq/sys/fs/ntfs
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
..
ntfs_compr.c Remove unneeded #include <sys/proc.h> lines. 2000-10-29 13:57:19 +00:00
ntfs_compr.h Merged NetBSD version, as they have done improvements: 1999-12-03 20:37:40 +00:00
ntfs_ihash.c Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
ntfs_ihash.h Convert lockmgr locks from using simple locks to using mutexes. 2000-10-04 01:29:17 +00:00
ntfs_inode.h Convert lockmgr locks from using simple locks to using mutexes. 2000-10-04 01:29:17 +00:00
ntfs_subr.c Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
ntfs_subr.h Convert lockmgr locks from using simple locks to using mutexes. 2000-10-04 01:29:17 +00:00
ntfs_vfsops.c Reviewed by: jlemon 2001-03-01 21:00:17 +00:00
ntfs_vfsops.h Forward declare some structs so that this header is more self-suifficent. 2000-01-14 19:54:42 +00:00
ntfs_vnops.c Use vop_defaultop() instead of ntfs_bypass(). 2000-11-18 02:47:12 +00:00
ntfs.h PDIRUNLOCK now exists on FreeBSD. Remove the (now incorrect) redefinition. 2000-10-02 04:47:19 +00:00
ntfsmount.h Merged NetBSD version, as they have done improvements: 1999-12-03 20:37:40 +00:00