tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kevent(2): EVFILT_VNODE filter miscounting hardlinks?



In article <54B6653F.9020104%eq.cz@localhost>, rudolf  <netbsd%eq.cz@localhost> wrote:
>rudolf wrote:
>> Taylor R Campbell wrote:
>>>     Date: Tue, 01 Jul 2014 14:56:19 +0200
>>>     From: rudolf <netbsd%eq.cz@localhost>
>>>
>>>     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?
>>>
>>> Yes, please!
>>
>> PR kern/48958
>
>I was wondering, why the PR attracted so far no reply. Maybe the gnat's 
>imperfect attachments handling is at fault? So I've just made the code 
>also available under:
>http://software.eq.cz/kern_48958/
>
>>> (By the way, this is a kernel issue, not a userland issue.)
>
>[switching mailing list: tech-userlevel --> tech-kern]

I added the test, and it works properly with ufs on current. It is still
probably broken on -6, but I am not sure if it is worth fixing, given that
the code has changed a lot on head...

christos



Home | Main Index | Thread Index | Old Index