freebsd-dev/sys/nfsclient
kan 4f32df96e0 1. Consolidate mount struct allocation/destruction into a common code in
vfs_mount_alloc/vfs_mount_destroy functions and take care to completely
destroy the mount point along with its locks. Mount struct has grown in
coplexity recently and depending on each failure path to destroy it
completely isn't working anymore.

2. Eliminate largely identical vfs_mount and vfs_unmount question by
moving the code to handle both cases into a newly introduced vfs_domount
function.

3. Simplify nfs_mount_diskless to always expect an allocated mount
struct and never attempt an allocation/destruction itself. The
vfs_allocroot allocation was there to support 'magic' swap space
configuration for diskless clients that was already removed by PHK some
time ago.

4. Include a vfs_buildopts cleanups by Peter Edwards to validate the
sanity of nmount parameters passed from userland.

Submitted by:  (4) Peter Edwards <peter.edwards@openet-telecom.com>
Reviewed by:    rwatson
2003-11-12 02:54:47 +00:00
..
bootp_subr.c Assert GIANT_REQUIRED where sockets are manipulated. This is 2003-11-07 22:57:09 +00:00
krpc_subr.c Assert GIANT_REQUIRED where sockets are manipulated. This is 2003-11-07 22:57:09 +00:00
krpc.h
nfs_bio.c Initialize bp->b_offset before calling VOP_STRATEGY(). 2003-10-18 11:14:29 +00:00
nfs_diskless.c Replace the if_name and if_unit members of struct ifnet with new members 2003-10-31 18:32:15 +00:00
nfs_lock.c Add fdidx argument to vn_open() and vn_open_cred() and pass -1 throughout. 2003-07-27 17:04:56 +00:00
nfs_lock.h Remove a case of exposing 'struct ucred' to userspace. Use a struct xucred 2002-08-15 21:52:22 +00:00
nfs_nfsiod.c Change idle sleep indentifier to "-" for nfsiod 2003-07-02 08:09:20 +00:00
nfs_node.c Since the addition of the VI_DOINGINACT flag some time ago, 2003-10-05 12:41:35 +00:00
nfs_socket.c Assert GIANT_REQUIRED where sockets are manipulated. This is 2003-11-07 22:57:09 +00:00
nfs_subs.c Remove mntvnode_mtx and replace it with per-mountpoint mutex. 2003-11-05 04:30:08 +00:00
nfs_vfsops.c 1. Consolidate mount struct allocation/destruction into a common code in 2003-11-12 02:54:47 +00:00
nfs_vnops.c Stop using shared locks for nfs vop locks. 2003-11-11 00:32:46 +00:00
nfs.h Remove extern declarations of stuff which is static in nfs_node.c 2002-10-20 21:40:55 +00:00
nfsargs.h
nfsdiskless.h Remove the magic way of configuring NFS backed swap. 2003-08-15 12:04:02 +00:00
nfsm_subs.h Avoid passing the variable `tl' to functions that just use it for 2001-12-18 01:22:09 +00:00
nfsmount.h Now that we have a cached mount credential in struct mount, use it istead 2002-09-08 15:11:18 +00:00
nfsnode.h Name the vnode method vectors consistently with the rest of the filesystems. 2003-09-12 16:44:40 +00:00
nfsstats.h
nlminfo.h