[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, Mar 27, 2001 at 03:53:37PM -0600, Adam Heath wrote:
> On Wed, 28 Mar 2001, Herbert Xu wrote:
> >
> > But if you only care about one file, then it's not a problem at all.
> But there is no way to tell the kernel to only look at that one file.  If you
> have multiple files in that one directory, and any one of them changed, you
> have to walk the entire list.

Why not just stat the file you care about?

> If you remove directory notification from your program, then it is back to
> implementing a stat()/sleep() call.

That should be the fallback solution when either directory notification is
nonexistant, or if the file is hardlinked.
Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Reply to: