[Bug 225934] FIFOs lack kevent EVFILT_VNODE support

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Feb 15 21:02:41 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225934

            Bug ID: 225934
           Summary: FIFOs lack kevent EVFILT_VNODE support
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: bdrewery at FreeBSD.org

r150074 had a relevant comment here:
+/*
+ * Because fifos are now a file descriptor layer object, EVFILT_VNODE is not
+ * implemented.  Likely, fifo_kqfilter() should be removed, and
+ * fifo_kqfilter_f() should know how to forward the request to the underling
+ * vnode using f_vnode in the file descriptor here.
+ */

My main interest is in having NOTE_DELETE work.

This impacts tail -F as it tries to use NOTE_DELETE|NOTE_RENAME but gets
EINVAL and then falls into a sleep+stat+read loop.

kevent(4,{
3,EVFILT_VNODE,EV_ADD|EV_ENABLE|EV_CLEAR,NOTE_DELETE|NOTE_RENAME,0x0,0x0
3,EVFILT_READ,EV_ADD|EV_ENABLE|EV_CLEAR,0x0,0x0,0x0 },2,0x0,0,{ 0.000000000 })
ERR#22 'Invalid argument'

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list