Re: statfs() / statvfs() syscall ballsup...

From: Chris Friesen
Date: Fri Oct 10 2003 - 12:35:08 EST


Joel Becker wrote:
On Fri, Oct 10, 2003 at 12:58:05PM -0400, Chris Friesen wrote:

Because you can't force flush/read. You can't say "I need you
to go to disk for this."

According to my man pages, this is exactly what msync() is for, no?


msync() forces write(), like fsync(). It doesn't force read().

Oh, of course.

So do the applications know when they need to invalidate the cache (allowing for the reader to do a reverse-msync kind of thing), or do they have to read from disk all the time?

Chris



--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: cfriesen@xxxxxxxxxxxxxxxxxx

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/