-/* $OpenBSD: cd9660_vnops.c,v 1.89 2021/03/24 16:17:05 semarie Exp $ */
+/* $OpenBSD: cd9660_vnops.c,v 1.90 2021/10/02 08:51:41 semarie Exp $ */
/* $NetBSD: cd9660_vnops.c,v 1.42 1997/10/16 23:56:57 christos Exp $ */
/*-
/* XXX: Keep in sync with spec_vops. */
.vop_lookup = vop_generic_lookup,
- .vop_create = spec_badop,
- .vop_mknod = spec_badop,
+ .vop_create = vop_generic_badop,
+ .vop_mknod = vop_generic_badop,
.vop_open = spec_open,
.vop_close = spec_close,
.vop_read = spec_read,
.vop_kqfilter = spec_kqfilter,
.vop_revoke = vop_generic_revoke,
.vop_fsync = spec_fsync,
- .vop_remove = spec_badop,
- .vop_link = spec_badop,
- .vop_rename = spec_badop,
- .vop_mkdir = spec_badop,
- .vop_rmdir = spec_badop,
- .vop_symlink = spec_badop,
- .vop_readdir = spec_badop,
- .vop_readlink = spec_badop,
- .vop_abortop = spec_badop,
+ .vop_remove = vop_generic_badop,
+ .vop_link = vop_generic_badop,
+ .vop_rename = vop_generic_badop,
+ .vop_mkdir = vop_generic_badop,
+ .vop_rmdir = vop_generic_badop,
+ .vop_symlink = vop_generic_badop,
+ .vop_readdir = vop_generic_badop,
+ .vop_readlink = vop_generic_badop,
+ .vop_abortop = vop_generic_badop,
.vop_bmap = vop_generic_bmap,
.vop_strategy = spec_strategy,
.vop_pathconf = spec_pathconf,
/* XXX: Keep in sync with fifo_vops. */
.vop_lookup = vop_generic_lookup,
- .vop_create = fifo_badop,
- .vop_mknod = fifo_badop,
+ .vop_create = vop_generic_badop,
+ .vop_mknod = vop_generic_badop,
.vop_open = fifo_open,
.vop_close = fifo_close,
.vop_read = fifo_read,
.vop_kqfilter = fifo_kqfilter,
.vop_revoke = vop_generic_revoke,
.vop_fsync = nullop,
- .vop_remove = fifo_badop,
- .vop_link = fifo_badop,
- .vop_rename = fifo_badop,
- .vop_mkdir = fifo_badop,
- .vop_rmdir = fifo_badop,
- .vop_symlink = fifo_badop,
- .vop_readdir = fifo_badop,
- .vop_readlink = fifo_badop,
- .vop_abortop = fifo_badop,
+ .vop_remove = vop_generic_badop,
+ .vop_link = vop_generic_badop,
+ .vop_rename = vop_generic_badop,
+ .vop_mkdir = vop_generic_badop,
+ .vop_rmdir = vop_generic_badop,
+ .vop_symlink = vop_generic_badop,
+ .vop_readdir = vop_generic_badop,
+ .vop_readlink = vop_generic_badop,
+ .vop_abortop = vop_generic_badop,
.vop_bmap = vop_generic_bmap,
- .vop_strategy = fifo_badop,
+ .vop_strategy = vop_generic_badop,
.vop_pathconf = fifo_pathconf,
.vop_advlock = fifo_advlock,
};
-/* $OpenBSD: spec_vnops.c,v 1.104 2021/04/28 09:53:53 claudio Exp $ */
+/* $OpenBSD: spec_vnops.c,v 1.105 2021/10/02 08:51:41 semarie Exp $ */
/* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */
/*
const struct vops spec_vops = {
.vop_lookup = vop_generic_lookup,
- .vop_create = spec_badop,
- .vop_mknod = spec_badop,
+ .vop_create = vop_generic_badop,
+ .vop_mknod = vop_generic_badop,
.vop_open = spec_open,
.vop_close = spec_close,
.vop_access = spec_access,
.vop_kqfilter = spec_kqfilter,
.vop_revoke = vop_generic_revoke,
.vop_fsync = spec_fsync,
- .vop_remove = spec_badop,
- .vop_link = spec_badop,
- .vop_rename = spec_badop,
- .vop_mkdir = spec_badop,
- .vop_rmdir = spec_badop,
- .vop_symlink = spec_badop,
- .vop_readdir = spec_badop,
- .vop_readlink = spec_badop,
- .vop_abortop = spec_badop,
+ .vop_remove = vop_generic_badop,
+ .vop_link = vop_generic_badop,
+ .vop_rename = vop_generic_badop,
+ .vop_mkdir = vop_generic_badop,
+ .vop_rmdir = vop_generic_badop,
+ .vop_symlink = vop_generic_badop,
+ .vop_readdir = vop_generic_badop,
+ .vop_readlink = vop_generic_badop,
+ .vop_abortop = vop_generic_badop,
.vop_inactive = spec_inactive,
.vop_reclaim = nullop,
.vop_lock = vop_generic_lock,
ap->a_op, ap->a_fl, ap->a_flags));
}
-/*
- * Special device bad operation
- */
-int
-spec_badop(void *v)
-{
-
- panic("spec_badop called");
- /* NOTREACHED */
-}
-
/*
* Copyright (c) 2006 Pedro Martelletto <pedro@ambientworks.net>
* Copyright (c) 2006 Thordur Bjornsson <thib@openbsd.org>
-/* $OpenBSD: vfs_default.c,v 1.48 2021/04/28 09:53:53 claudio Exp $ */
+/* $OpenBSD: vfs_default.c,v 1.49 2021/10/02 08:51:41 semarie Exp $ */
/*
* Portions of this code are:
return (0);
}
+int
+vop_generic_badop(void *v)
+{
+ panic("%s", __func__);
+}
+
int
vop_generic_bmap(void *v)
{
-/* $OpenBSD: dead_vnops.c,v 1.35 2021/04/28 09:53:53 claudio Exp $ */
+/* $OpenBSD: dead_vnops.c,v 1.36 2021/10/02 08:51:41 semarie Exp $ */
/* $NetBSD: dead_vnops.c,v 1.16 1996/02/13 13:12:48 mycroft Exp $ */
/*
/*
* Prototypes for dead operations on vnodes.
*/
-int dead_badop(void *);
int dead_ebadf(void *);
int dead_open(void *);
const struct vops dead_vops = {
.vop_lookup = vop_generic_lookup,
- .vop_create = dead_badop,
- .vop_mknod = dead_badop,
+ .vop_create = vop_generic_badop,
+ .vop_mknod = vop_generic_badop,
.vop_open = dead_open,
.vop_close = nullop,
.vop_access = dead_ebadf,
.vop_kqfilter = dead_kqfilter,
.vop_revoke = NULL,
.vop_fsync = nullop,
- .vop_remove = dead_badop,
- .vop_link = dead_badop,
- .vop_rename = dead_badop,
- .vop_mkdir = dead_badop,
- .vop_rmdir = dead_badop,
- .vop_symlink = dead_badop,
+ .vop_remove = vop_generic_badop,
+ .vop_link = vop_generic_badop,
+ .vop_rename = vop_generic_badop,
+ .vop_mkdir = vop_generic_badop,
+ .vop_rmdir = vop_generic_badop,
+ .vop_symlink = vop_generic_badop,
.vop_readdir = dead_ebadf,
.vop_readlink = dead_ebadf,
- .vop_abortop = dead_badop,
+ .vop_abortop = vop_generic_badop,
.vop_inactive = dead_inactive,
.vop_reclaim = nullop,
.vop_lock = dead_lock,
return (EBADF);
}
-/*
- * Empty vnode bad operation
- */
-/*ARGSUSED*/
-int
-dead_badop(void *v)
-{
- panic("dead_badop called");
- /* NOTREACHED */
-}
-
/*
* We have to wait during times when the vnode is
* in a state of change.
-/* $OpenBSD: fifo.h,v 1.22 2010/12/21 20:14:43 thib Exp $ */
+/* $OpenBSD: fifo.h,v 1.23 2021/10/02 08:51:41 semarie Exp $ */
/* $NetBSD: fifo.h,v 1.10 1996/02/09 22:40:15 christos Exp $ */
/*
/*
* Prototypes for fifo operations on vnodes.
*/
-int fifo_badop(void *);
int fifo_ebadf(void *);
int fifo_open(void *);
-/* $OpenBSD: fifo_vnops.c,v 1.80 2021/07/13 07:37:50 visa Exp $ */
+/* $OpenBSD: fifo_vnops.c,v 1.81 2021/10/02 08:51:41 semarie Exp $ */
/* $NetBSD: fifo_vnops.c,v 1.18 1996/03/16 23:52:42 christos Exp $ */
/*
const struct vops fifo_vops = {
.vop_lookup = vop_generic_lookup,
- .vop_create = fifo_badop,
- .vop_mknod = fifo_badop,
+ .vop_create = vop_generic_badop,
+ .vop_mknod = vop_generic_badop,
.vop_open = fifo_open,
.vop_close = fifo_close,
.vop_access = fifo_ebadf,
.vop_kqfilter = fifo_kqfilter,
.vop_revoke = vop_generic_revoke,
.vop_fsync = nullop,
- .vop_remove = fifo_badop,
- .vop_link = fifo_badop,
- .vop_rename = fifo_badop,
- .vop_mkdir = fifo_badop,
- .vop_rmdir = fifo_badop,
- .vop_symlink = fifo_badop,
- .vop_readdir = fifo_badop,
- .vop_readlink = fifo_badop,
- .vop_abortop = fifo_badop,
+ .vop_remove = vop_generic_badop,
+ .vop_link = vop_generic_badop,
+ .vop_rename = vop_generic_badop,
+ .vop_mkdir = vop_generic_badop,
+ .vop_rmdir = vop_generic_badop,
+ .vop_symlink = vop_generic_badop,
+ .vop_readdir = vop_generic_badop,
+ .vop_readlink = vop_generic_badop,
+ .vop_abortop = vop_generic_badop,
.vop_inactive = fifo_inactive,
.vop_reclaim = fifo_reclaim,
.vop_lock = vop_generic_lock,
.vop_unlock = vop_generic_unlock,
.vop_bmap = vop_generic_bmap,
- .vop_strategy = fifo_badop,
+ .vop_strategy = vop_generic_badop,
.vop_print = fifo_print,
.vop_islocked = vop_generic_islocked,
.vop_pathconf = fifo_pathconf,
return (EOPNOTSUPP);
}
-/*
- * Fifo bad operation
- */
-/*ARGSUSED*/
-int
-fifo_badop(void *v)
-{
-
- panic("fifo_badop called");
- /* NOTREACHED */
- return(0);
-}
-
-
int
fifo_kqfilter(void *v)
{
-/* $OpenBSD: nfs_vnops.c,v 1.186 2021/03/11 13:31:35 jsg Exp $ */
+/* $OpenBSD: nfs_vnops.c,v 1.187 2021/10/02 08:51:41 semarie Exp $ */
/* $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $ */
/*
/* XXX: Keep in sync with spec_vops. */
.vop_lookup = vop_generic_lookup,
- .vop_create = spec_badop,
- .vop_mknod = spec_badop,
+ .vop_create = vop_generic_badop,
+ .vop_mknod = vop_generic_badop,
.vop_open = spec_open,
.vop_ioctl = spec_ioctl,
.vop_poll = spec_poll,
.vop_kqfilter = spec_kqfilter,
.vop_revoke = vop_generic_revoke,
- .vop_remove = spec_badop,
- .vop_link = spec_badop,
- .vop_rename = spec_badop,
- .vop_mkdir = spec_badop,
- .vop_rmdir = spec_badop,
- .vop_symlink = spec_badop,
- .vop_readdir = spec_badop,
- .vop_readlink = spec_badop,
- .vop_abortop = spec_badop,
+ .vop_remove = vop_generic_badop,
+ .vop_link = vop_generic_badop,
+ .vop_rename = vop_generic_badop,
+ .vop_mkdir = vop_generic_badop,
+ .vop_rmdir = vop_generic_badop,
+ .vop_symlink = vop_generic_badop,
+ .vop_readdir = vop_generic_badop,
+ .vop_readlink = vop_generic_badop,
+ .vop_abortop = vop_generic_badop,
.vop_bmap = vop_generic_bmap,
.vop_strategy = spec_strategy,
.vop_pathconf = spec_pathconf,
/* XXX: Keep in sync with fifo_vops. */
.vop_lookup = vop_generic_lookup,
- .vop_create = fifo_badop,
- .vop_mknod = fifo_badop,
+ .vop_create = vop_generic_badop,
+ .vop_mknod = vop_generic_badop,
.vop_open = fifo_open,
.vop_ioctl = fifo_ioctl,
.vop_poll = fifo_poll,
.vop_kqfilter = fifo_kqfilter,
.vop_revoke = vop_generic_revoke,
- .vop_remove = fifo_badop,
- .vop_link = fifo_badop,
- .vop_rename = fifo_badop,
- .vop_mkdir = fifo_badop,
- .vop_rmdir = fifo_badop,
- .vop_symlink = fifo_badop,
- .vop_readdir = fifo_badop,
- .vop_readlink = fifo_badop,
- .vop_abortop = fifo_badop,
+ .vop_remove = vop_generic_badop,
+ .vop_link = vop_generic_badop,
+ .vop_rename = vop_generic_badop,
+ .vop_mkdir = vop_generic_badop,
+ .vop_rmdir = vop_generic_badop,
+ .vop_symlink = vop_generic_badop,
+ .vop_readdir = vop_generic_badop,
+ .vop_readlink = vop_generic_badop,
+ .vop_abortop = vop_generic_badop,
.vop_bmap = vop_generic_bmap,
- .vop_strategy = fifo_badop,
+ .vop_strategy = vop_generic_badop,
.vop_pathconf = fifo_pathconf,
.vop_advlock = fifo_advlock,
};
-/* $OpenBSD: specdev.h,v 1.39 2019/12/27 22:17:01 bluhm Exp $ */
+/* $OpenBSD: specdev.h,v 1.40 2021/10/02 08:51:41 semarie Exp $ */
/* $NetBSD: specdev.h,v 1.12 1996/02/13 13:13:01 mycroft Exp $ */
/*
/*
* Prototypes for special file operations on vnodes.
*/
-int spec_badop(void *);
int spec_getattr(void *);
int spec_setattr(void *);
int spec_access(void *);
-/* $OpenBSD: vnode.h,v 1.157 2021/04/28 09:53:53 claudio Exp $ */
+/* $OpenBSD: vnode.h,v 1.158 2021/10/02 08:51:41 semarie Exp $ */
/* $NetBSD: vnode.h,v 1.38 1996/02/29 20:59:05 cgd Exp $ */
/*
/* vfs_default.c */
int vop_generic_abortop(void *);
+int vop_generic_badop(void *);
int vop_generic_bmap(void *);
int vop_generic_bwrite(void *);
int vop_generic_islocked(void *);
-/* $OpenBSD: tmpfs_fifoops.c,v 1.5 2020/01/20 23:21:56 claudio Exp $ */
+/* $OpenBSD: tmpfs_fifoops.c,v 1.6 2021/10/02 08:51:41 semarie Exp $ */
/* $NetBSD: tmpfs_fifoops.c,v 1.9 2011/05/24 20:17:49 rmind Exp $ */
/*
const struct vops tmpfs_fifovops = {
.vop_lookup = vop_generic_lookup,
- .vop_create = fifo_badop,
- .vop_mknod = fifo_badop,
+ .vop_create = vop_generic_badop,
+ .vop_mknod = vop_generic_badop,
.vop_open = fifo_open,
.vop_close = fifo_close,
.vop_access = tmpfs_access,
.vop_kqfilter = fifo_kqfilter,
.vop_revoke = vop_generic_revoke,
.vop_fsync = tmpfs_fifo_fsync,
- .vop_remove = fifo_badop,
- .vop_link = fifo_badop,
- .vop_rename = fifo_badop,
- .vop_mkdir = fifo_badop,
- .vop_rmdir = fifo_badop,
- .vop_symlink = fifo_badop,
- .vop_readdir = fifo_badop,
- .vop_readlink = fifo_badop,
- .vop_abortop = fifo_badop,
+ .vop_remove = vop_generic_badop,
+ .vop_link = vop_generic_badop,
+ .vop_rename = vop_generic_badop,
+ .vop_mkdir = vop_generic_badop,
+ .vop_rmdir = vop_generic_badop,
+ .vop_symlink = vop_generic_badop,
+ .vop_readdir = vop_generic_badop,
+ .vop_readlink = vop_generic_badop,
+ .vop_abortop = vop_generic_badop,
.vop_inactive = tmpfs_inactive,
.vop_reclaim = tmpfs_reclaim,
.vop_lock = tmpfs_lock,
.vop_unlock = tmpfs_unlock,
.vop_bmap = vop_generic_bmap,
- .vop_strategy = fifo_badop,
+ .vop_strategy = vop_generic_badop,
.vop_print = tmpfs_print,
.vop_islocked = tmpfs_islocked,
.vop_pathconf = fifo_pathconf,
-/* $OpenBSD: tmpfs_specops.c,v 1.7 2021/06/29 16:15:37 claudio Exp $ */
+/* $OpenBSD: tmpfs_specops.c,v 1.8 2021/10/02 08:51:41 semarie Exp $ */
/* $NetBSD: tmpfs_specops.c,v 1.10 2011/05/24 20:17:49 rmind Exp $ */
/*
/* keep in sync with spec_vops */
.vop_lookup = vop_generic_lookup,
- .vop_create = spec_badop,
- .vop_mknod = spec_badop,
+ .vop_create = vop_generic_badop,
+ .vop_mknod = vop_generic_badop,
.vop_open = spec_open,
.vop_ioctl = spec_ioctl,
.vop_poll = spec_poll,
.vop_kqfilter = spec_kqfilter,
.vop_revoke = vop_generic_revoke,
- .vop_remove = spec_badop,
- .vop_link = spec_badop,
- .vop_rename = spec_badop,
- .vop_mkdir = spec_badop,
- .vop_rmdir = spec_badop,
- .vop_symlink = spec_badop,
- .vop_readdir = spec_badop,
- .vop_readlink = spec_badop,
- .vop_abortop = spec_badop,
+ .vop_remove = vop_generic_badop,
+ .vop_link = vop_generic_badop,
+ .vop_rename = vop_generic_badop,
+ .vop_mkdir = vop_generic_badop,
+ .vop_rmdir = vop_generic_badop,
+ .vop_symlink = vop_generic_badop,
+ .vop_readdir = vop_generic_badop,
+ .vop_readlink = vop_generic_badop,
+ .vop_abortop = vop_generic_badop,
.vop_bmap = vop_generic_bmap,
.vop_strategy = spec_strategy,
.vop_pathconf = spec_pathconf,
-/* $OpenBSD: ext2fs_vnops.c,v 1.88 2021/03/24 16:11:32 semarie Exp $ */
+/* $OpenBSD: ext2fs_vnops.c,v 1.89 2021/10/02 08:51:41 semarie Exp $ */
/* $NetBSD: ext2fs_vnops.c,v 1.1 1997/06/11 09:34:09 bouyer Exp $ */
/*
/* XXX: Keep in sync with spec_vops. */
.vop_lookup = vop_generic_lookup,
- .vop_create = spec_badop,
- .vop_mknod = spec_badop,
+ .vop_create = vop_generic_badop,
+ .vop_mknod = vop_generic_badop,
.vop_open = spec_open,
.vop_ioctl = spec_ioctl,
.vop_poll = spec_poll,
.vop_kqfilter = spec_kqfilter,
.vop_revoke = vop_generic_revoke,
- .vop_remove = spec_badop,
- .vop_link = spec_badop,
- .vop_rename = spec_badop,
- .vop_mkdir = spec_badop,
- .vop_rmdir = spec_badop,
- .vop_symlink = spec_badop,
- .vop_readdir = spec_badop,
- .vop_readlink = spec_badop,
- .vop_abortop = spec_badop,
+ .vop_remove = vop_generic_badop,
+ .vop_link = vop_generic_badop,
+ .vop_rename = vop_generic_badop,
+ .vop_mkdir = vop_generic_badop,
+ .vop_rmdir = vop_generic_badop,
+ .vop_symlink = vop_generic_badop,
+ .vop_readdir = vop_generic_badop,
+ .vop_readlink = vop_generic_badop,
+ .vop_abortop = vop_generic_badop,
.vop_bmap = vop_generic_bmap,
.vop_strategy = spec_strategy,
.vop_pathconf = spec_pathconf,
/* XXX: Keep in sync with fifo_vops */
.vop_lookup = vop_generic_lookup,
- .vop_create = fifo_badop,
- .vop_mknod = fifo_badop,
+ .vop_create = vop_generic_badop,
+ .vop_mknod = vop_generic_badop,
.vop_open = fifo_open,
.vop_ioctl = fifo_ioctl,
.vop_poll = fifo_poll,
.vop_kqfilter = fifo_kqfilter,
.vop_revoke = vop_generic_revoke,
- .vop_remove = fifo_badop,
- .vop_link = fifo_badop,
- .vop_rename = fifo_badop,
- .vop_mkdir = fifo_badop,
- .vop_rmdir = fifo_badop,
- .vop_symlink = fifo_badop,
- .vop_readdir = fifo_badop,
- .vop_readlink = fifo_badop,
- .vop_abortop = fifo_badop,
+ .vop_remove = vop_generic_badop,
+ .vop_link = vop_generic_badop,
+ .vop_rename = vop_generic_badop,
+ .vop_mkdir = vop_generic_badop,
+ .vop_rmdir = vop_generic_badop,
+ .vop_symlink = vop_generic_badop,
+ .vop_readdir = vop_generic_badop,
+ .vop_readlink = vop_generic_badop,
+ .vop_abortop = vop_generic_badop,
.vop_bmap = vop_generic_bmap,
- .vop_strategy = fifo_badop,
+ .vop_strategy = vop_generic_badop,
.vop_pathconf = fifo_pathconf,
.vop_advlock = fifo_advlock,
};
-/* $OpenBSD: ffs_vnops.c,v 1.98 2020/02/27 09:10:31 mpi Exp $ */
+/* $OpenBSD: ffs_vnops.c,v 1.99 2021/10/02 08:51:41 semarie Exp $ */
/* $NetBSD: ffs_vnops.c,v 1.7 1996/05/11 18:27:24 mycroft Exp $ */
/*
/* XXX: Keep in sync with spec_vops */
.vop_lookup = vop_generic_lookup,
- .vop_create = spec_badop,
- .vop_mknod = spec_badop,
+ .vop_create = vop_generic_badop,
+ .vop_mknod = vop_generic_badop,
.vop_open = spec_open,
.vop_ioctl = spec_ioctl,
.vop_poll = spec_poll,
.vop_kqfilter = spec_kqfilter,
.vop_revoke = vop_generic_revoke,
- .vop_remove = spec_badop,
- .vop_link = spec_badop,
- .vop_rename = spec_badop,
- .vop_mkdir = spec_badop,
- .vop_rmdir = spec_badop,
- .vop_symlink = spec_badop,
- .vop_readdir = spec_badop,
- .vop_readlink = spec_badop,
- .vop_abortop = spec_badop,
+ .vop_remove = vop_generic_badop,
+ .vop_link = vop_generic_badop,
+ .vop_rename = vop_generic_badop,
+ .vop_mkdir = vop_generic_badop,
+ .vop_rmdir = vop_generic_badop,
+ .vop_symlink = vop_generic_badop,
+ .vop_readdir = vop_generic_badop,
+ .vop_readlink = vop_generic_badop,
+ .vop_abortop = vop_generic_badop,
.vop_bmap = vop_generic_bmap,
.vop_strategy = spec_strategy,
.vop_pathconf = spec_pathconf,
/* XXX: Keep in sync with fifo_vops */
.vop_lookup = vop_generic_lookup,
- .vop_create = fifo_badop,
- .vop_mknod = fifo_badop,
+ .vop_create = vop_generic_badop,
+ .vop_mknod = vop_generic_badop,
.vop_open = fifo_open,
.vop_ioctl = fifo_ioctl,
.vop_poll = fifo_poll,
.vop_kqfilter = fifo_kqfilter,
.vop_revoke = vop_generic_revoke,
- .vop_remove = fifo_badop,
- .vop_link = fifo_badop,
- .vop_rename = fifo_badop,
- .vop_mkdir = fifo_badop,
- .vop_rmdir = fifo_badop,
- .vop_symlink = fifo_badop,
- .vop_readdir = fifo_badop,
- .vop_readlink = fifo_badop,
- .vop_abortop = fifo_badop,
+ .vop_remove = vop_generic_badop,
+ .vop_link = vop_generic_badop,
+ .vop_rename = vop_generic_badop,
+ .vop_mkdir = vop_generic_badop,
+ .vop_rmdir = vop_generic_badop,
+ .vop_symlink = vop_generic_badop,
+ .vop_readdir = vop_generic_badop,
+ .vop_readlink = vop_generic_badop,
+ .vop_abortop = vop_generic_badop,
.vop_bmap = vop_generic_bmap,
- .vop_strategy = fifo_badop,
+ .vop_strategy = vop_generic_badop,
.vop_pathconf = fifo_pathconf,
.vop_advlock = fifo_advlock
};
-/* $OpenBSD: mfs_extern.h,v 1.21 2021/03/24 16:17:06 semarie Exp $ */
+/* $OpenBSD: mfs_extern.h,v 1.22 2021/10/02 08:51:41 semarie Exp $ */
/* $NetBSD: mfs_extern.h,v 1.4 1996/02/09 22:31:27 christos Exp $ */
/*-
int mfs_inactive(void *);
int mfs_reclaim(void *);
int mfs_print(void *);
-int mfs_badop(void *);
-/* $OpenBSD: mfs_vnops.c,v 1.55 2021/03/24 16:17:06 semarie Exp $ */
+/* $OpenBSD: mfs_vnops.c,v 1.56 2021/10/02 08:51:41 semarie Exp $ */
/* $NetBSD: mfs_vnops.c,v 1.8 1996/03/17 02:16:32 christos Exp $ */
/*
/* mfs vnode operations. */
const struct vops mfs_vops = {
- .vop_lookup = mfs_badop,
- .vop_create = mfs_badop,
- .vop_mknod = mfs_badop,
+ .vop_lookup = vop_generic_badop,
+ .vop_create = vop_generic_badop,
+ .vop_mknod = vop_generic_badop,
.vop_open = mfs_open,
.vop_close = mfs_close,
- .vop_access = mfs_badop,
- .vop_getattr = mfs_badop,
- .vop_setattr = mfs_badop,
- .vop_read = mfs_badop,
- .vop_write = mfs_badop,
+ .vop_access = vop_generic_badop,
+ .vop_getattr = vop_generic_badop,
+ .vop_setattr = vop_generic_badop,
+ .vop_read = vop_generic_badop,
+ .vop_write = vop_generic_badop,
.vop_ioctl = mfs_ioctl,
- .vop_poll = mfs_badop,
- .vop_kqfilter = mfs_badop,
+ .vop_poll = vop_generic_badop,
+ .vop_kqfilter = vop_generic_badop,
.vop_revoke = vop_generic_revoke,
.vop_fsync = spec_fsync,
- .vop_remove = mfs_badop,
- .vop_link = mfs_badop,
- .vop_rename = mfs_badop,
- .vop_mkdir = mfs_badop,
- .vop_rmdir = mfs_badop,
- .vop_symlink = mfs_badop,
- .vop_readdir = mfs_badop,
- .vop_readlink = mfs_badop,
- .vop_abortop = mfs_badop,
+ .vop_remove = vop_generic_badop,
+ .vop_link = vop_generic_badop,
+ .vop_rename = vop_generic_badop,
+ .vop_mkdir = vop_generic_badop,
+ .vop_rmdir = vop_generic_badop,
+ .vop_symlink = vop_generic_badop,
+ .vop_readdir = vop_generic_badop,
+ .vop_readlink = vop_generic_badop,
+ .vop_abortop = vop_generic_badop,
.vop_inactive = mfs_inactive,
.vop_reclaim = mfs_reclaim,
.vop_lock = vop_generic_lock,
.vop_strategy = mfs_strategy,
.vop_print = mfs_print,
.vop_islocked = vop_generic_islocked,
- .vop_pathconf = mfs_badop,
- .vop_advlock = mfs_badop,
+ .vop_pathconf = vop_generic_badop,
+ .vop_advlock = vop_generic_badop,
.vop_bwrite = vop_generic_bwrite
};
mfsp->mfs_baseoff, mfsp->mfs_size);
return (0);
}
-
-/*
- * Block device bad operation
- */
-int
-mfs_badop(void *v)
-{
- panic("mfs_badop called");
-}