On Tue, 2005-09-20 at 17:38 +0100, Al Viro wrote: > I don't get it. Could you please describe what your code is _supposed_ > to do? I'm not even talking about implementation - it's on the level > of "what do we want the watchers to see after the following operations". I can't even talk to that level, but perhaps it'd help to know that some (I think) are pinning their hopes on inotify as the foundation of a userspace negative dentry cache (i.e., samba trying to prove a set of filenames (case-insensitively) doesn't exist). By that point of view: > ln a b > start watching b > rm a > chmod 400 b ...it's quite clearly important to continue to get b's events. Continuing: > >fd = open("foo", 0); > >unlink("foo"); > >sleep for a day > >fchmod(fd, 0400); > >sleep for a day > >close(fd); ...I'd say that providing the fchmod to userspace would be a good thing. That fd may be available to multiple processes, and so those processes could still be validly interested in events upon it. However, this is an obscure case that could be handled by polling with fstat, so if it's unreasonable for other reasons, toss the idea. Ray - 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:
- 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
- References:
- 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]>
- 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]>
- Re: [patch] stop inotify from sending random DELETE_SELF event under load
- Prev by Date: [PATCH 1/2] reboot: Comment and factor the main reboot functions
- Next by Date: Re: 2.6.14-rc1 - kernel BUG at fs/ntfs/aops.c:403
- 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):