From a99f398c52d92c66fc9a58c999e945525bf27dd7 Mon Sep 17 00:00:00 2001 From: jlemon Date: Thu, 22 Jun 2000 18:41:07 +0000 Subject: Add a hack to fail registration of kq events on a non-ufs filesystem, as support for those is non-existent at the moment. --- sys/kern/vfs_vnops.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sys/kern/vfs_vnops.c') diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 53c2cdb..a304d29 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -669,6 +669,14 @@ filt_vnattach(struct knote *kn) kn->kn_fp->f_type != DTYPE_FIFO) return (EBADF); + /* + * XXX + * this is a hack simply to cause the filter attach to fail + * for non-ufs filesystems, until the support for them is done. + */ + if ((vp)->v_tag != VT_UFS) + return (EOPNOTSUPP); + vp = (struct vnode *)kn->kn_fp->f_data; simple_lock(&vp->v_pollinfo.vpi_lock); -- cgit v1.1