Issue when renaming directory with inotifywait

Bug #254751 reported by Antonin Stefanutti on 2008-08-04
Affects Status Importance Assigned to Milestone
inotify-tools (Ubuntu)
Ryan Niebur

Bug Description

Binary package hint: inotify-tools

I am having a problem using inotifywait (version inotify-tools 3.12-1 ubuntu 8.04.1) in the following use case:

#1 I am running inotifywait the following way:
inotifywait -mrq --format '%w%f' -e create -e moved_to /home/*/dav/

#2 Then I create a new folder in /home/user/dav/, let say /home/user/dav/newdir

#3 Then I rename this folder, let say to /home/user/dav/newdir_renamed

#4 Then I create a new file, let say /home/user/dav/newdir_renamed/

# Actual Result: inotifywait triggers the event with the file path /home/user/dav/newdir/newfile

# Expected result: inotifywait should trigger the event with the file path /home/user/dav/newdir_renamed/newfile

Revision history for this message
Arnaud Soyez (weboide) wrote :

Confirmed in 3.12-1 in intrepid.

~$ inotifywait -mrq --format '%w%f' -e create -e moved_to tmp/

And here's what I typed in another console:
~/tmp$ mkdir newdir
~/tmp$ mv newdir/ newdir2
~/tmp$ touch newdir2/test
~/tmp$ touch newdir2/test2

Changed in inotify-tools:
status: New → Confirmed
Revision history for this message
Ryan Niebur (ryan52) wrote :

the patch that will soon be showing up here:
also fixes this problem. I'll get a fixed package out by the time of the release process for karmic+1.

Changed in inotify-tools (Ubuntu):
assignee: nobody → Ryan Niebur (ryan52)
importance: Undecided → Low
status: Confirmed → In Progress
Revision history for this message
Eriberto (eriberto) wrote :

Hi guys. Fixed in 3.13-2 version. Closing.

Changed in inotify-tools (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.