do the vfsstd thing instead of messing up our VFS_SYSCTL macro.
This commit is contained in:
parent
6242f82d07
commit
81d16e2d64
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131733
@ -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 */
|
||||
|
@ -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...
|
||||
|
@ -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 *);
|
||||
|
Loading…
Reference in New Issue
Block a user