2005-04-06 13:24:18

by Sean Neakums

[permalink] [raw]
Subject: 2.6.12-rc2-mm1: inotify and directory removal

Using your glib sample thingy from
http://www.kernel.org/pub/linux/kernel/people/rml/inotify/glib/

$ mkdir snozzberries
Event on wd=0: snozzberries, a directory, was created
$ rmdir snozzberries
Event on wd=0: snozzberries, a directory, was deleted

$ mkdir snozzberries
Event on wd=0: bunneh, a directory, was created
$ rm -r snozzberries
Event on wd=0: The watch was opened

Also seen, watching a directory after some other traffic:

$ mkdir snozzberries
Event on wd=0: snozzberries, a directory, was created
$ rm -r snozzberries
Event on wd=0: The watch was opened
Event on wd=0: was closed (was not writable)

If I use absolute paths the rmdir/mkdir case is the same.
However:

$ mkdir ~/tmp/snozzberries
Event on wd=0: snozzberries, a directory, was created
$ rm -r ~/tmp/snozzberries
Event on wd=0: snozzberries was opened

--
Dag vijandelijk luchtschip de huismeester is dood


2005-04-06 18:05:53

by Robert Love

[permalink] [raw]
Subject: Re: 2.6.12-rc2-mm1: inotify and directory removal

On Wed, 2005-04-06 at 14:21 +0100, Sean Neakums wrote:

> Using your glib sample thingy from
> http://www.kernel.org/pub/linux/kernel/people/rml/inotify/glib/

Thanks. It was a bug in the glib utility, not inotify itself.

I fixed it in inotify-glib-0.0.2, which should appear at the above URL
as soon as the mirrors sync.

Thanks again!

Robert Love