Re: [RFC/PATCH] Documentation/technical/api-fswatch.txt: start with outline
- From
- Pete Wyckoff <pw@padd.com>
- Date
- Mar 15, 2013, 16:27 UTC
- Message-ID
- <20130315162717.GA12137@padd.com>
- In-Reply-To
- <7vtxof146d.fsf@alter.siamese.dyndns.org>
gitster@pobox.com wrote on Wed, 13 Mar 2013 12:38 -0700:
Show 11 quoted lines
> Karsten Blees <karsten.blees@gmail.com> writes: > > > However, AFAIK inotify doesn't work recursively, so the daemon > > would at least have to track the directory structure to be able to > > register / unregister inotify handlers as directories come and go. > > Yes, and you would need one inotify per directory but you do not > have an infinite supply of outstanding inotify watch (wasn't the > limit like 8k per a single uid or something?), so the daemon must be > prepared to say "I'll watch this, that and that directories, but the > consumers should check other directories themselves."
fanotify is an option here too; it can watch an entire file system.
-- Pete