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



Carsten Kunze <carsten.kunze%arcor.de@localhost> writes:

> 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).
>
> If the current behaviour is 4.4BSD derived it is ok, but if it's
> "only" NetBSD specific it is maybe not optimal.

My first question is always: What does POSIX say?

Also, I wonder if there are any synchronization guarantees about *time
updates on write or close with regular file ops.

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index