diff options
| author | Garrett Wollman <wollman@FreeBSD.org> | 1994-10-20 00:48:28 +0000 |
|---|---|---|
| committer | Garrett Wollman <wollman@FreeBSD.org> | 1994-10-20 00:48:28 +0000 |
| commit | 03a6294027a720cc0039b9d62c4de8ad4d36c113 (patch) | |
| tree | de70a5583f7a3fd634d16c3bdd11e618c57fa668 /sys/kern/vfs_init.c | |
| parent | 74fbff447daa6bd9a49e9add952d30183d5fb4fa (diff) | |
Notes
Diffstat (limited to 'sys/kern/vfs_init.c')
| -rw-r--r-- | sys/kern/vfs_init.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c index 3fe155587db9..508e23f4d529 100644 --- a/sys/kern/vfs_init.c +++ b/sys/kern/vfs_init.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_init.c 8.3 (Berkeley) 1/4/94 - * $Id: vfs_init.c,v 1.7 1994/09/22 22:10:36 wollman Exp $ + * $Id: vfs_init.c,v 1.8 1994/10/08 22:33:42 phk Exp $ */ @@ -321,6 +321,18 @@ fs_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p) return 0; default: + if(namelen < 1) return EINVAL; + + i = name[0]; + + if(i <= MOUNT_MAXTYPE + && vfssw[i] + && vfssw[i]->vfs_sysctl) { + return vfssw[i]->vfs_sysctl(name + 1, namelen - 1, + oldp, oldlenp, + newp, newlen, p); + } + return (EOPNOTSUPP); } /* NOTREACHED */ |
