• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: file changes content but ContentModificationDate not changing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file changes content but ContentModificationDate not changing


  • Subject: Re: file changes content but ContentModificationDate not changing
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Fri, 07 Nov 2014 08:33:59 +0700

> On 7 Nov 2014, at 05:38, James C <email@hidden> 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, 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


 _______________________________________________
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


References: 
 >Re: file changes content but ContentModificationDate not changing (From: James C <email@hidden>)

  • Prev by Date: Re: file changes content but ContentModificationDate not changing
  • Next by Date: Debugging a core dump using lldb
  • Previous by thread: Re: file changes content but ContentModificationDate not changing
  • Next by thread: Core Storage read/write request
  • Index(es):
    • Date
    • Thread