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

Re: Bug#90867: Menu is more important than it would seem

On Tue, 27 Mar 2001, Herbert Xu wrote:

> Henrique M Holschuh <hmh@debian.org> wrote:
> >>
> >> If that hit can be reduced to a single call to stat() or fstat() (and
> >> I can't see why it can't) then I can't believe that amounts to much of
> > It can, and the performance hit is negligible IMHO. Heck, debian cron can
> > detect and reload configuration on the fly for a file and an entire
> > directory of files, and it does that check every minute. Nobody ever
> > complained, AFAIK.
> Linux 2.4 supports directory notification...

Yes, but it does so stupidly.

You can be notified when something changes in a directory, but it is up to you
to do an opendir(or rewinddir on a previously opened dir), and iterate thru
all the files, comparing with a previous list, to find what changed.

The 'api', as it were, only supports the notification.  It has no payload to
go along with it.

Reply to: