Re: some files written via mmap end up corrupted

2005-11-22 Thread Mikhail Teterin
On Tuesday 22 November 2005 02:45 am, Dan Nelson wrote: = In the last episode (Nov 21), Mikhail Teterin said: = > 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 corrup

Re: some files written via mmap end up corrupted

2005-11-21 Thread Dan Nelson
In the last episode (Nov 21), Mikhail Teterin said: > 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 kind of corr

some files written via mmap end up corrupted

2005-11-21 Thread Mikhail Teterin
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 _