- File inotifytools.h
- Improve wd/filename mapping. Currently there is no explicit code for handling different filenames mapping to the same inode (and hence, wd). gamin's approach sounds good: let the user watch an inode using several different filenames, and when an event occurs on the inode, generate an event for each filename.
- File inotifytools.h
- Improve wd/filename storage. At the moment, wds start begin allocated from 1 and grow upwards, and don't go down after watches are released. The current strategy in libinotifytools is to simply use the wd as an array index. This is obviously buggy; if you have a thousand watches, remove them all, and add one more watch, we'll end up with an array with about a thousand empty spots followed by one used spot! We need a proper solution which doesn't rely at all on the kernel policy of allocating wds. Some kind of hopefully efficient lookup table.
Generated on Sun Dec 17 07:12:55 2006 for libinotifytools by
1.5.1