do the vfsstd thing instead of messing up our VFS_SYSCTL macro.

This commit is contained in:
Alfred Perlstein 2004-07-07 06:58:29 +00:00
parent 6242f82d07
commit 81d16e2d64
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131733
3 changed files with 14 additions and 2 deletions

View File

@ -801,4 +801,14 @@ vfs_stdextattrctl(mp, cmd, filename_vp, attrnamespace, attrname, td)
return(EOPNOTSUPP);
}
int
vfs_stdsysctl(mp, op, req)
struct mount *mp;
fsctlop_t op;
struct sysctl_req *req;
{
return (EOPNOTSUPP);
}
/* end of vfs default ops */

View File

@ -458,6 +458,8 @@ vfs_register(struct vfsconf *vfc)
if (vfsops->vfs_extattrctl == NULL)
/* extended attribute control */
vfsops->vfs_extattrctl = vfs_stdextattrctl;
if (vfsops->vfs_sysctl == NULL)
vfsops->vfs_sysctl = vfs_stdsysctl;
/*
* Call init function for this VFS...

View File

@ -526,8 +526,7 @@ struct vfsops {
#define VFS_EXTATTRCTL(MP, C, FN, NS, N, P) \
(*(MP)->mnt_op->vfs_extattrctl)(MP, C, FN, NS, N, P)
#define VFS_SYSCTL(MP, OP, REQ) \
((MP) == NULL ? ENOTSUP : \
(*(MP)->mnt_op->vfs_sysctl)(MP, OP, REQ))
(*(MP)->mnt_op->vfs_sysctl)(MP, OP, REQ)
#include <sys/module.h>
@ -605,6 +604,7 @@ vfs_vptofh_t vfs_stdvptofh;
vfs_init_t vfs_stdinit;
vfs_uninit_t vfs_stduninit;
vfs_extattrctl_t vfs_stdextattrctl;
vfs_sysctl_t vfs_stdsysctl;
/* XXX - these should be indirect functions!!! */
int softdep_fsync(struct vnode *);