Re: [gamin] How to monitor a directory tree.



On Wed, May 18, 2005 at 07:31:14PM +0800, Arnault Teissier wrote:
> Hi,
> 
> I'm sorry to come out with a question like that, but I cannot manage to
> find a way to monitor a full directory tree. I could of course, asked to
> monitor avery directories and subdirectories, but I wonder there is no
> better way with the standard API.

  there is no way to do this directly from the API. You have to watch every
directory.

> And if I do so, i would know if I
> could bypass the limitation of 1024 monitored directory by using
> inotify.

  inotify and polling are the only way to bypass the kernel imposed dnotify
limitation on the number of open file descriptors.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]