« Return to Thread: Bug#494397: iwatch: New subdirectories in recursive mode won't be recognized

Bug#494397: iwatch: New subdirectories in recursive mode won't be recognized

by Michael Prokop-5 :: Rate this Message:

Reply (Restricted by the Administrator) | View in Thread

* Michael Prokop <mika@...> [20100113 14:10]:
> * helle <hwanderer@...> [20080809 02:47]:

> > iwatch with the "-r" option should watch recursivly.
> > Creating a new subfolder -> files inside of them won't be
> > watched.

> Any news regarding
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494397 from your
> side?

Quoting upstream (with his permission):

| and regarding the bug #494397, I am not quite sure
| how to fix it since as you have mentioned already,
| the inotify in linux kernel doesn't support recursive
| monitoring of directories.
| No matter how good the user space implementation of
| this recursive monitoring, there will be a race condition
| where you will still miss some events.
| For example if we do like mkdir -p a/b/c/d,
| a user space implementation will not be fast enough to watch
| the new directories.
| Please have a look also to a similar problem with pynotify:
| http://trac.dbzteam.org/pyinotify/ticket/8
| In my opinion, this should be fixed in the kernel. inotify
| should be able to monitor directory recursively.

regards,
-mika-


signature.asc (196 bytes) Download Attachment

 « Return to Thread: Bug#494397: iwatch: New subdirectories in recursive mode won't be recognized