Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Setting mtime doesn't work after copying a file with mmap
On Tue, Dec 08, 2015 at 01:54:02PM +0100, Carsten Kunze wrote:
>
> when I copy a file with mmap:
>
> - open both files
> - mmap both files
> - copy with memcpy
> - setting mtime with futimes
> - close both files
>
Try using msync with the invalidate option, that should push the pages
out to disk.
--
Brett Lymn
Let go, or be dragged - Zen proverb.
Home |
Main Index |
Thread Index |
Old Index