[PATCH] inotify: add MOVE_SELF event
authorJohn McCutchan <jmccutchan@novell.com>
Mon, 15 Aug 2005 16:13:28 +0000 (12:13 -0400)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 15 Aug 2005 16:50:31 +0000 (09:50 -0700)
commit89204c40a03346cd951e698d854105db4cfedc28
tree02f52e02f9f11c13c9859217755b043fcf0bbc30
parent0bf955ce98cb3cf40e20d0cc435299eb76e8819e
[PATCH] inotify: add MOVE_SELF event

This adds a MOVE_SELF event to inotify.  It is sent whenever the inode
you are watching is moved.  We need this event so that we can catch
something like this:

 - app1:
watch /etc/mtab

 - app2:
cp /etc/mtab /tmp/mtab-work
mv /etc/mtab /etc/mtab~
mv /tmp/mtab-work /etc/mtab

app1 still thinks it's watching /etc/mtab but it's actually watching
/etc/mtab~.

Signed-off-by: John McCutchan <ttb@tentacle.dhs.org>
Signed-off-by: Robert Love <rml@novell.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/namei.c
include/linux/fsnotify.h
include/linux/inotify.h