diff options
author | Sebastien Marie <semarie@cvs.openbsd.org> | 2023-07-17 09:41:21 +0000 |
---|---|---|
committer | Sebastien Marie <semarie@cvs.openbsd.org> | 2023-07-17 09:41:21 +0000 |
commit | b02e7798a04fc7bbad9c539be83ed20d9f9d5bc1 (patch) | |
tree | e47137debc74e89bbcc4b2672d2d4e4b27185643 /sys/msdosfs | |
parent | 40cf59b1fc1913af2a5b7775c68c9843887fad16 (diff) |
vfs: drop several macros hidding eopnotsupp
make it obvious in the vfsops assignment that an op isnt supported.
from thib4711 at mailbox dot org
ok claudio@
Diffstat (limited to 'sys/msdosfs')
-rw-r--r-- | sys/msdosfs/msdosfs_vfsops.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c index 0de37665dfd..5b27bb778ff 100644 --- a/sys/msdosfs/msdosfs_vfsops.c +++ b/sys/msdosfs/msdosfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msdosfs_vfsops.c,v 1.96 2022/08/12 14:30:52 visa Exp $ */ +/* $OpenBSD: msdosfs_vfsops.c,v 1.97 2023/07/17 09:41:20 semarie Exp $ */ /* $NetBSD: msdosfs_vfsops.c,v 1.48 1997/10/18 02:54:57 briggs Exp $ */ /*- @@ -762,27 +762,18 @@ msdosfs_check_export(struct mount *mp, struct mbuf *nam, int *exflagsp, return (0); } -#define msdosfs_vget ((int (*)(struct mount *, ino_t, struct vnode **)) \ - eopnotsupp) - -#define msdosfs_quotactl ((int (*)(struct mount *, int, uid_t, caddr_t, \ - struct proc *))eopnotsupp) - -#define msdosfs_sysctl ((int (*)(int *, u_int, void *, size_t *, void *, \ - size_t, struct proc *))eopnotsupp) - const struct vfsops msdosfs_vfsops = { .vfs_mount = msdosfs_mount, .vfs_start = msdosfs_start, .vfs_unmount = msdosfs_unmount, .vfs_root = msdosfs_root, - .vfs_quotactl = msdosfs_quotactl, + .vfs_quotactl = (void *)eopnotsupp, .vfs_statfs = msdosfs_statfs, .vfs_sync = msdosfs_sync, - .vfs_vget = msdosfs_vget, + .vfs_vget = (void *)eopnotsupp, .vfs_fhtovp = msdosfs_fhtovp, .vfs_vptofh = msdosfs_vptofh, .vfs_init = msdosfs_init, - .vfs_sysctl = msdosfs_sysctl, + .vfs_sysctl = (void *)eopnotsupp, .vfs_checkexp = msdosfs_check_export, }; |