Re: [GIT PULL] notification tree: directory events

From: Eric Paris
Date: Wed Aug 18 2010 - 11:59:31 EST


On Wed, 2010-08-18 at 17:47 +0200, Andreas Gruenbacher wrote:
> Eric,
>
> one more thing that doesn't make sense is events on directories: when watching
> a directory, some actions like reading a directory or creat()ing a file in the
> directory will generate events (even open_perm and access_perm), but other
> actions like hard linking files into the directory or removing files will not
> create any events. This means that fanotify currently cannot be used for
> watching for directory changes.
>
> In my opinion, events on directories should either be made to actually work,
> or else no directory events at all should be generated.
>
> Also, I can think of users of fanotify which are not concerned with directory
> events at all. It would make sense to allow such users to subscribe only to
> file events and not receive any directory events which they will end up
> ignoring anyway.
>
> Again it shows that this code just wasn't ready to be merged yet ...

I'm going to file your e-mail into my todo list and hopefully I get the
time to look at the ability to ignore directory events. Nothing hard
about it. It's as easy as defining a flag and adding a conditional in
the code but it's not high on my list.

Thus far your e-mails have pointed out one bug in the permissions
implementation I am currently working fixing and a bunch of complaining
about features you can imagine someone might someday want but which
noone has actually stood up and said 'I will use this' or 'this sucks
for my use case'. I can find all sorts of things around the kernel
where I can imagine some mythical users might want to do something
different but it isn't a reason to prevent merger. I'd love to have
more review, I'm certainly going to look at your wish list, but don't
expect response to future trolling messages.

-Eric

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/