Re: file changes content but ContentModificationDate not changing
Re: file changes content but ContentModificationDate not changing
- Subject: Re: file changes content but ContentModificationDate not changing
- From: James C <email@hidden>
- Date: Fri, 07 Nov 2014 11:38:34 +1300
If, as Quinn suggests, you are experiencing a problem related to flush
delay, then I wonder what adding an msync() would do. In the 10.6.8
manpages, file modification time is mentioned.
On 11/7/14, email@hidden
<email@hidden> wrote:
<snip>
> Date: Thu, 06 Nov 2014 11:20:26 +0700
> From: "Gerriet M. Denkmann" <email@hidden>
> To: Quinn The Eskimo! <email@hidden>
> Cc: "email@hidden Kernel"
> <email@hidden>
> Subject: Re: file changes content but ContentModificationDate not
> changing
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
<snip>
> else // stealth-mode > {
> // will receive no DISPATCH_VNODE_XXX at all
> // does NOT update the change-time of stats_drift_file
> NSLog(@"%s will write %g (case 3: stealth-mode using mmap)",__FUNCTION__,
> drift_comp * 1e6);
> off_t n = snprintf(mmap_addr, pageSize, "%.3f\n", drift_comp * 1e6);
> if (n != stats_size) // size of ntp.drift changed
> {
> truncate(stats_drift_file, n);
> stats_size = n;
> };
> };
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden