NetBSD/sbin
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
..
atactl Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
badsect Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
bim Kill __P(), use ANSI function declarations. 2005-02-05 14:23:24 +00:00
brconfig Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
ccdconfig namespace sanity: no need to include <sys/device.h> 2005-09-08 14:50:02 +00:00
cgdconfig - constify. 2005-06-27 03:07:45 +00:00
chkconfig Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
clri Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
disklabel Sync DK types and FS types with <sys/disklabel.h>. 2005-09-21 14:51:20 +00:00
dkctl Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
dmesg Make is worthwhile haveing #ifdef SMALL by making the Makefile set it when 2005-09-05 20:56:41 +00:00
drvctl Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
dump Argument is read-blocksize, not "read blocksize". From YOMURA Masanori in private mail. 2005-09-11 23:36:55 +00:00
dump_lfs be consistent in XXXGCC -Wuninitialized fixes ... 2005-06-18 01:33:16 +00:00
edlabel Allow this to build under -Wcast-qual -Werror by adding const to a few 2005-06-28 18:14:45 +00:00
fastboot Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:11 +00:00
fdisk When building as host tool don't include "../../include/util.h". 2005-08-27 22:43:40 +00:00
fsck Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
fsck_ext2fs Apply the NFS exports list rototill patch: 2005-09-23 12:10:31 +00:00
fsck_ffs Apply the NFS exports list rototill patch: 2005-09-23 12:10:31 +00:00
fsck_lfs Apply the NFS exports list rototill patch: 2005-09-23 12:10:31 +00:00
fsck_msdos WARNS=2 is the default defined in sbin/Makefile.inc. (thanks wiz) 2005-01-20 16:39:22 +00:00
fsdb 64 bit inode changes 2005-08-19 02:07:18 +00:00
fsirand Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
ifconfig Commit a straggler: use the new SIOCG80211STATS/SIOCG80211ZSTATS 2005-09-15 23:35:15 +00:00
init Mark up more paths with .Pa, and 2005-07-01 17:07:33 +00:00
ldconfig appease gcc -Wuninitialized 2005-06-02 00:01:47 +00:00
lmcctl Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
mbrlabel Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
mknod Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
modload Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
modunload Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
mount Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
mount_ados Apply the NFS exports list rototill patch: 2005-09-23 12:10:31 +00:00
mount_cd9660 Apply the NFS exports list rototill patch: 2005-09-23 12:10:31 +00:00
mount_ext2fs Apply the NFS exports list rototill patch: 2005-09-23 12:10:31 +00:00
mount_fdesc Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
mount_ffs Apply the NFS exports list rototill patch: 2005-09-23 12:10:31 +00:00
mount_filecore Apply the NFS exports list rototill patch: 2005-09-23 12:10:31 +00:00
mount_kernfs Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
mount_lfs Apply the NFS exports list rototill patch: 2005-09-23 12:10:31 +00:00
mount_msdos Apply the NFS exports list rototill patch: 2005-09-23 12:10:31 +00:00
mount_nfs Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
mount_ntfs Apply the NFS exports list rototill patch: 2005-09-23 12:10:31 +00:00
mount_null Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
mount_overlay Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
mount_portal Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
mount_procfs Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
mount_ptyfs Fix PR#3617 and PR#3205: call realpath to convert mount points and paths to 2005-01-31 05:19:18 +00:00
mount_smbfs install the example dot.nsmbrc 2003-04-04 07:50:43 +00:00
mount_tmpfs Apply the NFS exports list rototill patch: 2005-09-23 12:10:31 +00:00
mount_umap Sync usage with manpage. 2005-09-11 23:40:54 +00:00
mount_union Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
newbtconf Drop bogus .Bl/.El uncovered by new mdoc. 2004-08-31 17:08:06 +00:00
newfs Apply the NFS exports list rototill patch: 2005-09-23 12:10:31 +00:00
newfs_lfs make this compile again. 2005-09-13 04:40:25 +00:00
newfs_msdos Add a tweak to default value settings for a number of drive heads 2005-04-16 14:40:36 +00:00
nologin Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
pdisk Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
ping add -h option in synopsis. Fixes PR#25863 from Kouichirou Hiratsuka. 2004-06-08 08:05:30 +00:00
ping6 Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
pppoectl Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
raidctl Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
rcorder Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
reboot Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 10:04:22 +00:00
resize_ffs Fix a typo in a comment. 2005-06-03 03:34:44 +00:00
resize_lfs Ensure verbose is initialized before using it. 2005-06-02 01:16:06 +00:00
restore use d_fileno instead of d_ino for consistency 2005-08-19 06:44:06 +00:00
rndctl Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
route Add full IPv6 syntax support when route is built with -DSMALL and -DINET6. 2005-08-31 02:58:30 +00:00
routed Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
rtsol rtsol: factor out dump.c if -DSMALL (for boot floppy) 2004-01-03 01:40:31 +00:00
savecore Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
scan_ffs Specify the scan_ffs manpage, otherwise it will use scan_ffs.1. 2005-09-10 23:15:52 +00:00
scsictl Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
setkey Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
shutdown Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
slattach Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
swapctl Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
sysctl Mention vfs.sync.*, bump date. 2005-09-21 19:08:44 +00:00
ttyflags Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
tunefs Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
umount Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00
veriexecctl Bump date for previous; use more markup. 2005-08-07 11:17:31 +00:00
vinum Add const to a duplicate declaration of sd_state(). 2005-07-05 22:21:38 +00:00
wdogctl If ioctl(,WDOGIOC_SMODE,) fails, kill the child process before 2005-08-31 18:28:58 +00:00
wsconsctl Fix typo. From YOMURA Masanori in private mail. 2005-09-11 23:50:46 +00:00
Makefile Initial addition of tmpfs, an efficient memory file-system. This project 2005-09-10 19:20:48 +00:00
Makefile.inc Move WARNS=3 to the Makefile.inc, and add a little const to the remaining 2005-06-27 01:00:04 +00:00