Messages in this thread | | | Date | Sat, 6 Mar 1999 22:05:39 +0200 (IST) | From | Alon Ziv <> | Subject | Re: RFC: invalidateCaches(fd) interface |
| |
On Sat, 6 Mar 1999, Larry McVoy wrote:
> I've been unable to find an interface in Linux which will flush just a > single file's data from the buffer/page cache[s]. I used to do this on > Sun's with an mmap() and then an msync(MS_INVALIDATE) but that doesn't > seem to work in Linux. Does anyone have a patch to do this and would there
I believe it's a useful interface, but should be programmatical (e.g. fixing fsync(MS_INVALIDATE)).
This is because: a) This interface may find good use in databases; it's more-or-less what they truly need when they keep asking for `raw devices' b) It's trivial to write a small proggy that will use it and be useful in shell scripts
-az
------------------------+---------------------------------------------------- . __ | Phone: +972 3 5340753 (home), +972 3 9685882 (work) _| / | email: alonz@usa.net / | /_ Alon Ziv | smail: 33 Ha-Rama St., Ganey Tiqwah 55900, Israel ------------------------+---------------------------------------------------- <<<(((this place reserved for that ultra-wise oneliner I haven't found.)))>>>
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |