diff options
author | jlemon <jlemon@FreeBSD.org> | 2000-06-22 18:41:07 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 2000-06-22 18:41:07 +0000 |
commit | a99f398c52d92c66fc9a58c999e945525bf27dd7 (patch) | |
tree | 9ee4ff9bbce09ad312b614911ebd0942cdcb8d76 /sys | |
parent | e9628093bdeb32e11c8f363a5100c654cfe5842a (diff) | |
download | FreeBSD-src-a99f398c52d92c66fc9a58c999e945525bf27dd7.zip FreeBSD-src-a99f398c52d92c66fc9a58c999e945525bf27dd7.tar.gz |
Add a hack to fail registration of kq events on a non-ufs filesystem, as
support for those is non-existent at the moment.
Diffstat (limited to 'sys')
-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 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); |