Current-Users archive

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

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



In article <Pine.NEB.4.64.1512091615470.14226%mail.netbsd.org@localhost>,
Eduardo Horvath  <eeh%NetBSD.org@localhost> wrote:
>On Wed, 9 Dec 2015, Carsten Kunze wrote:
>
>> christos%astron.com@localhost (Christos Zoulas) wrote:
>> 
>> > How often should it be updated?
>> 
>> Only once on munmap?  If it is updated at an unpredictable time it makes
>something like utime(2) senseless (since it is changed anyway).  Always
>use msync is a performance issue for e.g. "cp -p ..." (so I think cp(1)
>doesn't use mmap for copying).
>
>Is the file descriptor still open at the time of the munmap?

No, it does not need to be. If it was it would be simple.

christos



Home | Main Index | Thread Index | Old Index