NetBSD/sys/kern
jmmv 2a3e5eeb7c Apply the NFS exports list rototill patch:
- Remove all NFS related stuff from file system specific code.
- Drop the vfs_checkexp hook and generalize it in the new nfs_check_export
  function, thus removing redundancy from all file systems.
- Move all NFS export-related stuff from kern/vfs_subr.c to the new
  file sys/nfs/nfs_export.c.  The former was becoming large and its code
  is always compiled, regardless of the build options.  Using the latter,
  the code is only compiled in when NFSSERVER is enabled.  While doing this,
  also make some functions in nfs_subs.c conditional to NFSSERVER.
- Add a new command in nfssvc(2), called NFSSVC_SETEXPORTSLIST, that takes a
  path and a set of export entries.  At the moment it can only clear the
  exports list or append entries, one by one, but it is done in a way that
  allows setting the whole set of entries atomically in the future (see the
  comment in mountd_set_exports_list or in doc/TODO).
- Change mountd(8) to use the nfssvc(2) system call instead of mount(2) so
  that it becomes file system agnostic.  In fact, all this whole thing was
  done to remove a 'XXX' block from this utility!
- Change the mount*, newfs and fsck* userland utilities to not deal with NFS
  exports initialization; done internally by the kernel when initializing
  the NFS support for each file system.
- Implement an interface for VFS (called VFS hooks) so that several kernel
  subsystems can run arbitrary code upon receipt of specific VFS events.
  At the moment, this only provides support for unmount and is used to
  destroy NFS exports lists from the file systems being unmounted, though it
  has room for extension.

Thanks go to yamt@, chs@, thorpej@, wrstuden@ and others for their comments
and advice in the development of this patch.
2005-09-23 12:10:31 +00:00
..
Make.tags.inc
Makefile nuke trailing whitespace 2005-02-26 21:34:55 +00:00
bufq_disksort.c lookup bufq using link_set rather than a switch statement. 2004-11-25 04:52:23 +00:00
bufq_fcfs.c lookup bufq using link_set rather than a switch statement. 2004-11-25 04:52:23 +00:00
bufq_priocscan.c bufq_priocscan_get: don't update state in the case of !remove. fix BUFQ_PEEK. 2005-03-03 05:00:22 +00:00
bufq_readprio.c lookup bufq using link_set rather than a switch statement. 2004-11-25 04:52:23 +00:00
cnmagic.c - add const. 2005-05-29 22:24:14 +00:00
core_elf32.c Make copy{in,out}_proc work on all processes (including curproc) by 2005-07-06 22:30:42 +00:00
core_elf64.c
core_netbsd.c Rework the coredump code to have no explicit knownledge of how coredump 2005-06-10 05:10:12 +00:00
exec_aout.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
exec_conf.c First work on COMPAT_LINUX/amd64 2005-05-03 16:26:27 +00:00
exec_ecoff.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
exec_elf32.c More cosmetic changes. 2005-07-17 23:53:57 +00:00
exec_elf64.c
exec_macho.c the magic number is not byte-swapped. 2005-06-25 02:22:57 +00:00
exec_script.c #ifdef VERIFIED_EXEC 2005-07-29 14:49:00 +00:00
exec_subr.c Collect vmcmd statistics. 2005-07-06 23:08:57 +00:00
genlintstub.awk nuke trailing whitespace 2005-02-26 21:34:55 +00:00
init_main.c Move proc0 initialization from main() in init_main.c and proc0_insert() in 2005-08-05 11:03:18 +00:00
init_sysctl.c Implement curtain in KERN_{PROC,PROC2,FILE,FILE2,PROC_ARGS}. 2005-09-07 17:30:07 +00:00
init_sysent.c 64 bit inode changes. 2005-08-19 02:03:49 +00:00
kern_acct.c Use ANSI function decls. Apply some static. 2005-06-23 23:15:12 +00:00
kern_clock.c Introduced nanotime() which is going to be used by some fs code yet to 2005-09-12 16:21:31 +00:00
kern_descrip.c 64 bit inode changes. 2005-08-19 02:03:49 +00:00
kern_drvctl.c Replace the "locnames", attached to cfdata, which was solely good for 2005-08-25 15:06:28 +00:00
kern_event.c - add const. 2005-05-29 22:24:14 +00:00
kern_exec.c Better debugging info on failure 2005-08-19 02:04:02 +00:00
kern_exit.c protect p_nrlwps by sched_lock. no objection on tech-kern@. PR/29652. 2005-08-28 14:57:18 +00:00
kern_fork.c Add P_CLDSIGIGN, P_NOCLDSTOP and P_NOCLDWAIT to the list of flags we want 2005-05-17 19:22:19 +00:00
kern_kcont.c Use ANSI function decls. Apply some static. 2005-06-23 23:15:12 +00:00
kern_ksyms.c Use %zx in a format string to print a size_t, not %lx, so a kernel 2005-06-25 05:30:04 +00:00
kern_kthread.c Merge the nathanw_sa branch. 2003-01-18 10:06:22 +00:00
kern_ktrace.c - add const. 2005-05-29 22:24:14 +00:00
kern_lkm.c `lkmlookup()' is called with its name argument either from kernel or from 2005-04-12 14:13:16 +00:00
kern_lock.c Fix function variable names shadowing global declarations. 2005-06-01 13:12:49 +00:00
kern_lwp.c protect p_nrlwps by sched_lock. no objection on tech-kern@. PR/29652. 2005-08-28 14:57:18 +00:00
kern_malloc.c Fix wording in a comment. 2005-08-05 13:18:32 +00:00
kern_malloc_debug.c merge yamt-km branch. 2005-04-01 11:59:21 +00:00
kern_microtime.c cc_microset: #if 0 out a diagnositc printf. 2005-01-23 08:39:51 +00:00
kern_ntptime.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
kern_physio.c Use ANSI function decls. Apply some static. 2005-06-23 23:15:12 +00:00
kern_proc.c Cosmetic changes. 2005-08-05 11:05:44 +00:00
kern_prot.c Made the code of the grsortu function smaller and simpler. Ok'ed by 2005-09-02 20:51:53 +00:00
kern_ras.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
kern_resource.c Use ANSI function decls. Apply some static. 2005-06-23 23:15:12 +00:00
kern_sa.c Revert incomplete (and possibly incorrect) sys_sa_preempt implementation 2005-09-07 23:31:06 +00:00
kern_sig.c Introduce __sigtimedwait1 which will help adding COMPAT_NETBSD32 support 2005-07-23 22:02:13 +00:00
kern_subr.c Create functions ioctl_copyin() and ioctl_copyout(). They are meant to be 2005-08-28 20:58:14 +00:00
kern_synch.c - add const. 2005-05-29 22:24:14 +00:00
kern_sysctl.c old_sysctl: fix null dereference when oldlenp == NULL. 2005-08-21 13:14:54 +00:00
kern_systrace.c From marius@openbsd: 2005-06-27 17:11:20 +00:00
kern_time.c Apply the NFS exports list rototill patch: 2005-09-23 12:10:31 +00:00
kern_timeout.c need a "const" 2005-06-01 12:27:15 +00:00
kern_uuid.c - add const. 2005-05-29 22:24:14 +00:00
kern_verifiedexec.c Sync comments with 64-bit inode changes. 2005-09-02 14:16:50 +00:00
kern_xxx.c Use ANSI function decls. Apply some static. 2005-06-23 23:15:12 +00:00
kgdb_stub.c Add missing const. Reported by Allar Ritter in tech-kern. 2005-07-13 04:24:26 +00:00
makesyscalls.sh get rid of trailing spaces in the "created from" line (constructed by 2005-02-26 23:32:31 +00:00
subr_autoconf.c in mapply(), call config_match() instead duplicating its code 2005-08-29 19:13:48 +00:00
subr_blist.c - add const. 2005-05-29 22:24:14 +00:00
subr_devsw.c add missing __KERNEL_RCSID() 2003-07-14 14:59:01 +00:00
subr_disk.c introduce a variant of disk_attach/detach, for pseudo disks 2005-08-20 12:00:01 +00:00
subr_disk_mbr.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
subr_evcnt.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
subr_extent.c Use ANSI function decls. 2005-06-23 18:46:17 +00:00
subr_log.c Use ANSI function decls. 2005-06-23 18:46:17 +00:00
subr_pool.c Fix some locking issues: 2005-06-18 01:34:03 +00:00
subr_prf.c Use ANSI function decls. 2005-06-23 18:46:17 +00:00
subr_prof.c Use ANSI function decls. 2005-06-23 18:46:17 +00:00
subr_prop.c - add const. 2005-05-29 22:24:14 +00:00
subr_userconf.c make use of the locator information: print "?" if a locator is 2005-09-08 14:58:14 +00:00
subr_xxx.c Use ANSI function decls. 2005-06-23 18:46:17 +00:00
sys_generic.c - add const. 2005-05-29 22:24:14 +00:00
sys_pipe.c PR/27185: Christian Biere: kqueue: EOF on pipe gains no EVFILT_READ event 2005-09-11 17:55:26 +00:00
sys_pmc.c Make this compile again on i386 by avoiding an unused variable 2003-01-20 01:40:48 +00:00
sys_process.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
sys_socket.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
syscalls.c 64 bit inode changes. 2005-08-19 02:04:03 +00:00
syscalls.conf 64 bit inode changes. 2005-08-19 02:04:03 +00:00
syscalls.master 64 bit inode changes. 2005-08-19 02:04:03 +00:00
sysv_ipc.c
sysv_msg.c merge yamt-km branch. 2005-04-01 11:59:21 +00:00
sysv_sem.c merge yamt-km branch. 2005-04-01 11:59:21 +00:00
sysv_shm.c merge yamt-km branch. 2005-04-01 11:59:21 +00:00
tty.c In the SIGIO case, only check that we are the controlling tty if we are a 2005-07-25 17:32:03 +00:00
tty_bsdpty.c - add const. 2005-05-29 22:24:14 +00:00
tty_conf.c PR-30566: Poll must not return <sys/errno.h> values. 2005-06-21 14:01:11 +00:00
tty_ptm.c Cloning cleanup: 2004-11-30 04:25:43 +00:00
tty_pty.c PR-30566: Poll must not return <sys/errno.h> values. 2005-06-21 14:01:11 +00:00
tty_subr.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
tty_tb.c - add const. 2005-05-29 22:24:14 +00:00
tty_tty.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
uipc_domain.c Use ``l'' and not ``curlwp''. Thanks to Peter Postma for catching this. 2005-09-07 18:06:04 +00:00
uipc_mbuf.c - introduce M_MOVE_PKTHDR and use it where appropriate. 2005-08-18 00:30:58 +00:00
uipc_mbuf2.c In m_pulldown avoid a prepend to the next mbuf in the chain if the result 2005-05-06 09:40:40 +00:00
uipc_proto.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
uipc_sem.c nuke trailing whitespace 2005-02-26 21:34:55 +00:00
uipc_socket.c Panic strings should not end with \n. 2005-05-08 18:44:39 +00:00
uipc_socket2.c - add const. 2005-05-29 22:24:14 +00:00
uipc_syscalls.c In adjust_rights() Use CMSG_SPACE() to calculate the number of 2005-09-03 22:48:35 +00:00
uipc_usrreq.c Honor the user's umask while creating local sockets. Several other systems 2005-08-30 15:03:04 +00:00
vfs_bio.c Properly fix the constipated lossage wrt -Wcast-qual and the sysctl 2005-06-09 02:19:59 +00:00
vfs_cache.c introduce a new function, cache_lookup_raw(), for filesystems which 2004-06-27 08:50:44 +00:00
vfs_getcwd.c 64 bit inode changes. 2005-08-19 02:04:03 +00:00
vfs_hooks.c Apply the NFS exports list rototill patch: 2005-09-23 12:10:31 +00:00
vfs_init.c Use ANSI function decls. 2005-06-05 23:47:48 +00:00
vfs_lockf.c Re-arrange slighty, eliminate prototypes that are unnecessary when using 2005-06-05 23:10:25 +00:00
vfs_lookup.c A few tweaks to magic symlinks: 2005-07-06 18:53:00 +00:00
vfs_subr.c Apply the NFS exports list rototill patch: 2005-09-23 12:10:31 +00:00
vfs_syscalls.c Apply the NFS exports list rototill patch: 2005-09-23 12:10:31 +00:00
vfs_vnops.c uninline vn_start_write and vn_finished_write as they are big enough. 2005-09-20 09:49:01 +00:00
vfs_xattr.c Move the rest of the extattr stuff into vfs_xattr.c 2005-07-10 22:10:00 +00:00
vnode_if.c regen 2005-02-26 22:15:10 +00:00
vnode_if.sh remove some trailing spaces in generated output when removing $s from $NetBSD$ 2005-02-26 22:06:38 +00:00
vnode_if.src revert trailing whitespace change -- it had unintended consequences 2005-02-26 22:14:39 +00:00