Subject: CVS commit: src
To: None <source-changes@NetBSD.org>
From: Julio M. Merino Vidal <jmmv@netbsd.org>
List: source-changes
Date: 09/23/2005 12:10:35
Module Name: src
Committed By: jmmv
Date: Fri Sep 23 12:10:35 UTC 2005
Modified Files:
src/distrib/sets/lists/comp: mi
src/doc: CHANGES TODO
src/lib/libc/sys: nfssvc.2
src/sbin/fsck_ext2fs: main.c
src/sbin/fsck_ffs: main.c
src/sbin/fsck_lfs: main.c
src/sbin/mount_ados: mount_ados.c
src/sbin/mount_cd9660: mount_cd9660.c
src/sbin/mount_ext2fs: mount_ext2fs.c
src/sbin/mount_ffs: mount_ffs.c
src/sbin/mount_filecore: mount_filecore.c
src/sbin/mount_lfs: mount_lfs.c
src/sbin/mount_msdos: mount_msdos.c
src/sbin/mount_ntfs: mount_ntfs.c
src/sbin/mount_tmpfs: mount_tmpfs.c
src/sbin/newfs: newfs.c
src/share/man/man9: Makefile vfsops.9 vfssubr.9
src/sys/coda: coda_vfsops.c
src/sys/conf: files
src/sys/fs/adosfs: adosfs.h advfsops.c
src/sys/fs/cd9660: cd9660_extern.h cd9660_mount.h cd9660_vfsops.c
src/sys/fs/filecorefs: filecore_extern.h filecore_mount.h
filecore_vfsops.c
src/sys/fs/msdosfs: msdosfs_vfsops.c msdosfsmount.h
src/sys/fs/ntfs: ntfs.h ntfs_vfsops.c ntfsmount.h
src/sys/fs/ptyfs: ptyfs_vfsops.c
src/sys/fs/smbfs: smbfs.h smbfs_vfsops.c
src/sys/fs/tmpfs: tmpfs.h tmpfs_vfsops.c
src/sys/fs/union: union_vfsops.c
src/sys/kern: kern_time.c vfs_subr.c vfs_syscalls.c
src/sys/miscfs/fdesc: fdesc_vfsops.c
src/sys/miscfs/genfs: layer.h layer_extern.h layer_vfsops.c
src/sys/miscfs/kernfs: kernfs_vfsops.c
src/sys/miscfs/nullfs: null_vfsops.c
src/sys/miscfs/overlay: overlay_vfsops.c
src/sys/miscfs/portal: portal_vfsops.c
src/sys/miscfs/procfs: procfs_vfsops.c
src/sys/miscfs/umapfs: umap_vfsops.c
src/sys/nfs: files.nfs nfs.h nfs_subs.c nfs_syscalls.c nfs_var.h
nfs_vfsops.c nfsmount.h
src/sys/sys: fstypes.h mount.h
src/sys/ufs/ext2fs: ext2fs_vfsops.c
src/sys/ufs/ffs: ffs_vfsops.c
src/sys/ufs/lfs: lfs_vfsops.c
src/sys/ufs/mfs: mfs_vfsops.c
src/sys/ufs/ufs: ufs_extern.h ufs_vfsops.c ufsmount.h
src/usr.sbin/mountd: mountd.8 mountd.c
Added Files:
src/share/man/man9: vfs_hooks.9
src/sys/kern: vfs_hooks.c
src/sys/nfs: nfs_export.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -r1.816 -r1.817 src/distrib/sets/lists/comp/mi
cvs rdiff -r1.524 -r1.525 src/doc/CHANGES
cvs rdiff -r1.12 -r1.13 src/doc/TODO
cvs rdiff -r1.20 -r1.21 src/lib/libc/sys/nfssvc.2
cvs rdiff -r1.22 -r1.23 src/sbin/fsck_ext2fs/main.c
cvs rdiff -r1.59 -r1.60 src/sbin/fsck_ffs/main.c
cvs rdiff -r1.26 -r1.27 src/sbin/fsck_lfs/main.c
cvs rdiff -r1.19 -r1.20 src/sbin/mount_ados/mount_ados.c
cvs rdiff -r1.20 -r1.21 src/sbin/mount_cd9660/mount_cd9660.c
cvs rdiff -r1.13 -r1.14 src/sbin/mount_ext2fs/mount_ext2fs.c
cvs rdiff -r1.17 -r1.18 src/sbin/mount_ffs/mount_ffs.c
cvs rdiff -r1.11 -r1.12 src/sbin/mount_filecore/mount_filecore.c
cvs rdiff -r1.25 -r1.26 src/sbin/mount_lfs/mount_lfs.c
cvs rdiff -r1.36 -r1.37 src/sbin/mount_msdos/mount_msdos.c
cvs rdiff -r1.12 -r1.13 src/sbin/mount_ntfs/mount_ntfs.c
cvs rdiff -r1.1 -r1.2 src/sbin/mount_tmpfs/mount_tmpfs.c
cvs rdiff -r1.85 -r1.86 src/sbin/newfs/newfs.c
cvs rdiff -r1.176 -r1.177 src/share/man/man9/Makefile
cvs rdiff -r0 -r1.1 src/share/man/man9/vfs_hooks.9
cvs rdiff -r1.21 -r1.22 src/share/man/man9/vfsops.9
cvs rdiff -r1.10 -r1.11 src/share/man/man9/vfssubr.9
cvs rdiff -r1.45 -r1.46 src/sys/coda/coda_vfsops.c
cvs rdiff -r1.731 -r1.732 src/sys/conf/files
cvs rdiff -r1.5 -r1.6 src/sys/fs/adosfs/adosfs.h
cvs rdiff -r1.24 -r1.25 src/sys/fs/adosfs/advfsops.c
cvs rdiff -r1.14 -r1.15 src/sys/fs/cd9660/cd9660_extern.h
cvs rdiff -r1.3 -r1.4 src/sys/fs/cd9660/cd9660_mount.h
cvs rdiff -r1.26 -r1.27 src/sys/fs/cd9660/cd9660_vfsops.c
cvs rdiff -r1.9 -r1.10 src/sys/fs/filecorefs/filecore_extern.h
cvs rdiff -r1.3 -r1.4 src/sys/fs/filecorefs/filecore_mount.h
cvs rdiff -r1.20 -r1.21 src/sys/fs/filecorefs/filecore_vfsops.c
cvs rdiff -r1.27 -r1.28 src/sys/fs/msdosfs/msdosfs_vfsops.c
cvs rdiff -r1.8 -r1.9 src/sys/fs/msdosfs/msdosfsmount.h
cvs rdiff -r1.9 -r1.10 src/sys/fs/ntfs/ntfs.h
cvs rdiff -r1.33 -r1.34 src/sys/fs/ntfs/ntfs_vfsops.c
cvs rdiff -r1.2 -r1.3 src/sys/fs/ntfs/ntfsmount.h
cvs rdiff -r1.8 -r1.9 src/sys/fs/ptyfs/ptyfs_vfsops.c
cvs rdiff -r1.10 -r1.11 src/sys/fs/smbfs/smbfs.h
cvs rdiff -r1.49 -r1.50 src/sys/fs/smbfs/smbfs_vfsops.c
cvs rdiff -r1.4 -r1.5 src/sys/fs/tmpfs/tmpfs.h
cvs rdiff -r1.3 -r1.4 src/sys/fs/tmpfs/tmpfs_vfsops.c
cvs rdiff -r1.29 -r1.30 src/sys/fs/union/union_vfsops.c
cvs rdiff -r1.92 -r1.93 src/sys/kern/kern_time.c
cvs rdiff -r0 -r1.1 src/sys/kern/vfs_hooks.c
cvs rdiff -r1.253 -r1.254 src/sys/kern/vfs_subr.c
cvs rdiff -r1.230 -r1.231 src/sys/kern/vfs_syscalls.c
cvs rdiff -r1.56 -r1.57 src/sys/miscfs/fdesc/fdesc_vfsops.c
cvs rdiff -r1.8 -r1.9 src/sys/miscfs/genfs/layer.h
cvs rdiff -r1.18 -r1.19 src/sys/miscfs/genfs/layer_extern.h
cvs rdiff -r1.20 -r1.21 src/sys/miscfs/genfs/layer_vfsops.c
cvs rdiff -r1.68 -r1.69 src/sys/miscfs/kernfs/kernfs_vfsops.c
cvs rdiff -r1.56 -r1.57 src/sys/miscfs/nullfs/null_vfsops.c
cvs rdiff -r1.31 -r1.32 src/sys/miscfs/overlay/overlay_vfsops.c
cvs rdiff -r1.52 -r1.53 src/sys/miscfs/portal/portal_vfsops.c
cvs rdiff -r1.61 -r1.62 src/sys/miscfs/procfs/procfs_vfsops.c
cvs rdiff -r1.54 -r1.55 src/sys/miscfs/umapfs/umap_vfsops.c
cvs rdiff -r1.5 -r1.6 src/sys/nfs/files.nfs
cvs rdiff -r1.49 -r1.50 src/sys/nfs/nfs.h
cvs rdiff -r0 -r1.1 src/sys/nfs/nfs_export.c
cvs rdiff -r1.152 -r1.153 src/sys/nfs/nfs_subs.c
cvs rdiff -r1.81 -r1.82 src/sys/nfs/nfs_syscalls.c
cvs rdiff -r1.51 -r1.52 src/sys/nfs/nfs_var.h
cvs rdiff -r1.149 -r1.150 src/sys/nfs/nfs_vfsops.c
cvs rdiff -r1.34 -r1.35 src/sys/nfs/nfsmount.h
cvs rdiff -r1.5 -r1.6 src/sys/sys/fstypes.h
cvs rdiff -r1.131 -r1.132 src/sys/sys/mount.h
cvs rdiff -r1.90 -r1.91 src/sys/ufs/ext2fs/ext2fs_vfsops.c
cvs rdiff -r1.173 -r1.174 src/sys/ufs/ffs/ffs_vfsops.c
cvs rdiff -r1.186 -r1.187 src/sys/ufs/lfs/lfs_vfsops.c
cvs rdiff -r1.68 -r1.69 src/sys/ufs/mfs/mfs_vfsops.c
cvs rdiff -r1.45 -r1.46 src/sys/ufs/ufs/ufs_extern.h
cvs rdiff -r1.24 -r1.25 src/sys/ufs/ufs/ufs_vfsops.c
cvs rdiff -r1.19 -r1.20 src/sys/ufs/ufs/ufsmount.h
cvs rdiff -r1.30 -r1.31 src/usr.sbin/mountd/mountd.8
cvs rdiff -r1.97 -r1.98 src/usr.sbin/mountd/mountd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.