1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00
freebsd/sys/gnu/ext2fs
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
..
alpha-bitops.h Put the bits in place for Alpha support for ext2. Not tested. 2000-12-09 22:32:49 +00:00
COPYRIGHT.INFO
ext2_alloc.c Preceed/preceeding are not english words. Use precede or preceding. 2001-02-18 10:25:42 +00:00
ext2_balloc.c Backed out previous commit. Don't depend on namespace pollution in 2000-12-02 12:03:58 +00:00
ext2_bmap.c
ext2_extern.h Support filesystems with the not-so-new "sparse_superblocks" feature. 2000-11-03 16:41:48 +00:00
ext2_fs_sb.h
ext2_fs.h Support filesystems with the not-so-new "sparse_superblocks" feature. 2000-11-03 16:41:48 +00:00
ext2_ihash.c Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
ext2_inode_cnv.c
ext2_inode.c
ext2_linux_balloc.c Put the bits in place for Alpha support for ext2. Not tested. 2000-12-09 22:32:49 +00:00
ext2_linux_ialloc.c Put the bits in place for Alpha support for ext2. Not tested. 2000-12-09 22:32:49 +00:00
ext2_lookup.c Convert all users of fldoff() to offsetof(). fldoff() is bad 2000-10-27 11:45:49 +00:00
ext2_mount.h
ext2_readwrite.c Proc locking, mostly protecting p_ucred while obtaining additional 2001-01-23 22:41:15 +00:00
ext2_subr.c Correct to a common %ld the 5 argument to a printf. 2000-12-09 22:32:01 +00:00
ext2_vfsops.c Reviewed by: jlemon 2001-03-01 21:00:17 +00:00
ext2_vnops.c Fixed breakage of mknod() in rev.1.48 of ext2_vnops.c and rev.1.126 of 2000-11-04 08:10:56 +00:00
fs.h Quick fix for not writing group descriptor group, inode bitmaps or 2000-11-10 14:54:15 +00:00
i386-bitops.h
inode.h