On Tue, 2005-09-20 at 05:58 +0100, Al Viro wrote: > On Tue, Sep 20, 2005 at 12:53:12AM -0400, John McCutchan wrote: > > DELETE_SELF WD=X > > > > The path you requested a watch on (inotify_add_watch(path,mask) returned > > X) has been deleted. > > Then why the devil do we have IN_DELETE and IN_DELETE_SELF generated > in different places? The only difference is in who receives the > event - you send IN_DELETE to watchers on parent and IN_DELETE_SELF > on watchers on victim. Event itself is the same, judging by your > description... No, because in the case of IN_DELETE, the path represented by the WD hasn't been deleted, it is "PATH(WD)/event->name" that has been. Also, IN_DELETE_SELF marks the death of the WD, no further events will be sent with the same WD [Except for the IN_IGNORE]. -- John McCutchan <[email protected]> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- References:
- [patch] stop inotify from sending random DELETE_SELF event under load
- From: John McCutchan <[email protected]>
- Re: [patch] stop inotify from sending random DELETE_SELF event under load
- From: Linus Torvalds <[email protected]>
- Re: [patch] stop inotify from sending random DELETE_SELF event under load
- From: John McCutchan <[email protected]>
- Re: [patch] stop inotify from sending random DELETE_SELF event under load
- From: Linus Torvalds <[email protected]>
- Re: [patch] stop inotify from sending random DELETE_SELF event under load
- From: John McCutchan <[email protected]>
- Re: [patch] stop inotify from sending random DELETE_SELF event under load
- From: Linus Torvalds <[email protected]>
- Re: [patch] stop inotify from sending random DELETE_SELF event under load
- From: Al Viro <[email protected]>
- Re: [patch] stop inotify from sending random DELETE_SELF event under load
- From: John McCutchan <[email protected]>
- Re: [patch] stop inotify from sending random DELETE_SELF event under load
- From: Al Viro <[email protected]>
- Re: [patch] stop inotify from sending random DELETE_SELF event under load
- From: John McCutchan <[email protected]>
- Re: [patch] stop inotify from sending random DELETE_SELF event under load
- From: Al Viro <[email protected]>
- [patch] stop inotify from sending random DELETE_SELF event under load
- Prev by Date: Re: [Question] How to understand Clock-Pro algorithm?
- Next by Date: Re: 2.6.14-rc1-git-now still dying in mm/slab - this time line 1849
- Previous by thread: Re: [patch] stop inotify from sending random DELETE_SELF event under load
- Next by thread: Re: [patch] stop inotify from sending random DELETE_SELF event under load
- Index(es):