Re: file changes content but ContentModificationDate not changing
On 7 Nov 2014, at 05:38, James C <james.from.wellington@gmail.com> wrote:
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.
adding msync() creates a DISPATCH_VNODE_WRITE notification. Kind regards, Gerriet.
On 11/7/14, darwin-kernel-request@lists.apple.com <darwin-kernel-request@lists.apple.com> wrote: <snip>
Date: Thu, 06 Nov 2014 11:20:26 +0700 From: "Gerriet M. Denkmann" <gerriet@mdenkmann.de> To: Quinn The Eskimo! <eskimo1@apple.com> Cc: "darwin-kernel@lists.apple.com Kernel" <darwin-kernel@lists.apple.com> Subject: Re: file changes content but ContentModificationDate not changing Message-ID: <02609A41-A004-45C1-AB0F-4DE9FB2571C5@mdenkmann.de> 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-kernel/gerriet%40mdenkmann.de
This email sent to gerriet@mdenkmann.de
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Gerriet M. Denkmann