diff options
| author | Jonathan Lemon <jlemon@FreeBSD.org> | 2000-06-22 18:41:07 +0000 |
|---|---|---|
| committer | Jonathan Lemon <jlemon@FreeBSD.org> | 2000-06-22 18:41:07 +0000 |
| commit | c8bea19ee361da93b051bf859b1e87f1559681c5 (patch) | |
| tree | 693704a9d5b033d6cd6acef86393f602aba0191a | |
| parent | d2693dbbc4a50cadea996cfa60f52b91c9d39e4c (diff) | |
Notes
| -rw-r--r-- | sys/kern/vfs_vnops.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 53c2cdb1498d..a304d29560f2 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); |
