Add a hack to fail registration of kq events on a non-ufs filesystem, as

support for those is non-existent at the moment.
This commit is contained in:
Jonathan Lemon 2000-06-22 18:41:07 +00:00
parent d2693dbbc4
commit c8bea19ee3

View File

@ -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);