From 3e019deaed5ad0687ea53ed5b5ba3336dc0be3c4 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Thu, 15 Jul 2004 08:26:07 +0000 Subject: Do a pass over all modules in the kernel and make them return EOPNOTSUPP for unknown events. A number of modules return EINVAL in this instance, and I have left those alone for now and instead taught MOD_QUIESCE to accept this as "didn't do anything". --- sys/kern/vfs_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/kern/vfs_init.c') diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c index 871404c141ff..9597519c3b1f 100644 --- a/sys/kern/vfs_init.c +++ b/sys/kern/vfs_init.c @@ -528,7 +528,8 @@ vfs_modevent(module_t mod, int type, void *data) if (vfc) error = vfs_unregister(vfc); break; - default: /* including MOD_SHUTDOWN */ + default: + error = EOPNOTSUPP; break; } return (error); -- cgit v1.2.3