tech-userlevel archive

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

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



   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!  Some time ago I noticed by code inspection that vnode
kevents are kinda broken in various file systems, but I don't recall
the details and haven't found time to actually do anything about it.
(By the way, this is a kernel issue, not a userland issue.)


Home | Main Index | Thread Index | Old Index