Re: Directory-change notification (was Re: Desktop)



Wolfgang Sourdeau <wolfgang@ultim.net> writes:

> On Mon, 14 Feb 2000, Drazen Kacar wrote:
> 
> > That's sensible. However, I would expect that most of the discussions
> > about kernel features needed for Gnome would take place on non-Gnome
> > lists. Therefore, if something gets implemented in one kernel, it would
> > be beneficial to have the discussions gathered from the various lists
> > and put into single place somewhere on Gnome's web space.
> > 
> > 
> 
> It seems to me that instead of rescanning every opened directory every
> two seconds and/or giving ourselves troubles with kernel stuff, we could
> simply take a look every x secondes at the modification time of each
> directory instead and rescan it if and only if it has been modified.
> 
> Would there be any problem from there ?
> 

The mtime of the directory tells you if files have been added,
removed, or renamed, but does not tell you if the contents of the file
or filesystem metadata that lives in the inode has changed.

 - Maciej



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