some files written via mmap end up corrupted

Mikhail Teterin mi+mx at aldan.algebra.com
Mon Nov 21 21:53:10 GMT 2005


I must not be using the API properly :-(

The writes to the mmap-ed area and then fsync-s the opened file, munmaps it, 
and exits.

Sometimes, the files end up corrupted at the end, however -- in about 10% of 
cases.

What am I doing wrong? Thanks!

	-mi


More information about the freebsd-questions mailing list