NetBSD-Bugs archive

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

kern/48958: kevent(2): EVFILT_VNODE filter miscounting hardlinks



>Number:         48958
>Category:       kern
>Synopsis:       kevent(2): EVFILT_VNODE filter miscounting hardlinks
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 01 20:05:00 +0000 2014
>Originator:     rudolf
>Release:        6.1_STABLE updated at May 23 2014
>Organization:
>Environment:
NetBSD 6.1_STABLE amd64 
>Description:
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/").

The filter correctly returns NOTE_LINK (and NOTE_WRITE) upon a mkdir in the 
watched directory (e.g. "mkdir /tmp/watchdir/bar").

Observed using a test program from PR kern/34267.
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index