Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Aw: Re: Setting mtime doesn't work after copying a file with mmap

> >Yes. I open the files, then do many mmap->munmap in a loop (for large
> >files--I don't map the whole file at once), then use futimes then close.
> Can't you use fsync() then?

But fsync also does an immediate physical write and hence blocks the process.

But msync with MS_ASYNC seems to do the job.  So the kernel is POSIX here which is perfect.


Home | Main Index | Thread Index | Old Index