• 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: Thu, 06 Nov 2014 17:37:14 +0700

> On 6 Nov 2014, at 16:23, Quinn The Eskimo! <email@hidden> wrote:
>
> On 6 Nov 2014, at 04:20, Gerriet M. Denkmann <email@hidden> wrote:
>
>> Following your advice I found a way to change a file without DISPATCH_SOURCE_TYPE_VNODE noticing it (same way save_drift_file() in ntp_util.c does it):
>
> As to whether it /should/ be this way, I'm not really qualified to say--given the way memory mapping works, it might be quite hard to change this behaviour--but, regardless, if the current behaviour is causing you problems, you should file a bug about it.

Not really a problem. This was just a sidetrack.

> Realistically though, it might be better asking for a dedicated notification for the drift change rather than trying to do this through the file system.

What I am currently doing is: polling by sending a packet to ntpd (same as ntpq does), asking for the current frequency.
This is probably efficient enough.

Getting a notification whenever the frequency changes  would be nice, but how?

NSDistributedNotificationCenter? "Posting a distributed notification is an expensive operation."

Registering a block with ntpd to be executed in this case? (Looks dangerous, as ntpd runs as root).

Some other method?


Anyway, thanks a lot for your help! - I understand DISPATCH_SOURCE_TYPE_VNODE much better now.


Kind regards,

Gerriet.


 _______________________________________________
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


  • Follow-Ups:
    • Re: file changes content but ContentModificationDate not changing
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
References: 
 >file changes content but ContentModificationDate not changing (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: file changes content but ContentModificationDate not changing (From: "Quinn \"The Eskimo!\"" <email@hidden>)
 >Re: file changes content but ContentModificationDate not changing (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: file changes content but ContentModificationDate not changing (From: "Quinn \"The Eskimo!\"" <email@hidden>)
 >Re: file changes content but ContentModificationDate not changing (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: file changes content but ContentModificationDate not changing (From: "Quinn \"The Eskimo!\"" <email@hidden>)

  • Prev by Date: Re: file changes content but ContentModificationDate not changing
  • Next by Date: Re: file changes content but ContentModificationDate not changing
  • Previous by thread: Re: file changes content but ContentModificationDate not changing
  • Next by thread: Re: file changes content but ContentModificationDate not changing
  • Index(es):
    • Date
    • Thread