tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kevent(2): EVFILT_VNODE filter miscounting hardlinks?
Hi,
if there is a EVFILT_VNODE filter watching a directory (e.g.
"/tmp/watchdir"), it does not return NOTE_LINK (it only returns
NOTE_WRITE) upon a move of a directory from or into the watched
directory (e.g. "mkdir /tmp/foo; mv /tmp/foo /tmp/watchdir/"). This
seems like a bug to me. Should I submit a PR?
Note: the filter correctly returns NOTE_LINK (and NOTE_WRITE) upon a
mkdir in the watched directory (e.g. "mkdir /tmp/watchdir/bar").
I've observed this behavior under NetBSD 6.1_STABLE amd64 using a test
program from PR kern/34267.
Thanks,
r.
Home |
Main Index |
Thread Index |
Old Index