Subject: improving kqueue
To: None <firstname.lastname@example.org>
From: Milos Negovanovic <email@example.com>
Date: 09/17/2006 20:29:57
I have been trying to create file system watcher application using
facilities provided by kqueue, and it turned out to be more complicated
than it looked at first. Main problem is the lack of "verbosity" that
generated events provide about certain changes in the file system.
For example EVFILT_VNODE filter registered on a directory file descriptor
with NOTE_WRITE fflag provides no information about what happened in that
directory(apart the fact that something did happen), resulting in me having
to do expensive directory listing to find out what exactly happened (if file
was added, deleted or whatever else). Is there a way to place the cause of
the change in the data field of the generated event?
I guess this would count as a feature request :).