Messages in this thread | | | Date | Mon, 31 Mar 2003 12:55:48 -0500 | From | Benjamin LaHaise <> | Subject | Re: mmap-related questions |
| |
On Mon, Mar 31, 2003 at 06:41:10AM -0800, Kenny Simpson wrote: > I tested that fsync() does not seem to sync pages that > were mapped with mmap. Is there some way to sync all > data associated with the file? Is there a way which > is also portable to Solaris 2.6?
No. You must use msync(). Note that fsync() after munmap() will flush the pages to disk under Linux.
> BTW: I'm using 2.4.7 (RH enterprise)
2.4.7 is way out of date and should be updated for the numerous bugfixes and security errata.
-ben - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |