Issue when renaming directory with inotifywait

Bug #254751 reported by Antonin Stefanutti on 2008-08-04
4
Affects Status Importance Assigned to Milestone
inotify-tools (Ubuntu)
Low
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/
newfile

# 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

Arnaud Soyez (weboide) wrote :

Confirmed in 3.12-1 in intrepid.

~$ inotifywait -mrq --format '%w%f' -e create -e moved_to tmp/
tmp/newdir
tmp/newdir2
tmp/newdir/test
tmp/newdir/test2

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
Ryan Niebur (ryan52) wrote :

the patch that will soon be showing up here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=447672
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
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.