rudolf
2014-07-01 12:56:19 UTC
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.
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.