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



In article <1137794632.341322.1449682529800.JavaMail.ngmail%webmail09.arcor-online.net@localhost>,
Carsten Kunze  <carsten.kunze%arcor.de@localhost> wrote:
>Eduardo Horvath <eeh%NetBSD.org@localhost> wrote:
>
>> Is the file descriptor still open at the time of the munmap?
>
>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?

christos



Home | Main Index | Thread Index | Old Index