Home | History | Annotate | Download | only in kern
History log of /src/sys/kern/vfs_hooks.c
RevisionDateAuthorComments
 1.9  07-Dec-2024  riastradh vfs(9): Sprinkle SET_ERROR dtrace probes.

PR kern/58378: Kernel error code origination lacks dtrace probes
 1.8  07-Dec-2024  riastradh vfs(9): Fix some more whitespace issues.

No functional change intended.
 1.7  07-Dec-2024  riastradh vfs(9): Sprinkle KNF.

No functional change intended.
 1.6  15-Mar-2009  cegger ansify function definitions
 1.5  19-Nov-2008  ad branches: 1.5.4;
Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime
 1.4  10-May-2008  rumble branches: 1.4.4; 1.4.6;
Convert file systems to dynamically attach with the new module interface.
Make VFS hooks dynamic while we're here and say farewell to VFS_ATTACH and
VFS_HOOKS_ATTACH linksets.

As a consequence, most of the file systems can now be loaded as new style
modules.

Quick sanity check by ad@.
 1.3  28-Apr-2008  martin branches: 1.3.2;
Remove clause 3 and 4 from TNF licenses
 1.2  11-Dec-2005  christos branches: 1.2.18; 1.2.72; 1.2.74; 1.2.76;
merge ktrace-lwp.
 1.1  23-Sep-2005  jmmv branches: 1.1.6;
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.
 1.1.6.2  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.6.1  23-Sep-2005  skrll file vfs_hooks.c was added on branch ktrace-lwp on 2005-11-10 14:09:46 +0000
 1.2.76.2  04-May-2009  yamt sync with head.
 1.2.76.1  16-May-2008  yamt sync with head.
 1.2.74.1  18-May-2008  yamt sync with head.
 1.2.72.2  17-Jan-2009  mjf Sync with HEAD.
 1.2.72.1  02-Jun-2008  mjf Sync with HEAD.
 1.2.18.2  21-Jun-2006  yamt sync with head.
 1.2.18.1  11-Dec-2005  yamt file vfs_hooks.c was added on branch yamt-lazymbuf on 2006-06-21 15:09:39 +0000
 1.3.2.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.4.6.2  28-Apr-2009  skrll Sync with HEAD.
 1.4.6.1  19-Jan-2009  skrll Sync with HEAD.
 1.4.4.1  13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.5.4.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

RSS XML Feed