• 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: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Thu, 06 Nov 2014 09:23:58 +0000

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):

Oh, I missed the whole mmap branch of that code.

*sigh*

I'm not sure of the exact mechanics but my expectation is that, when you modify a file via mmap, the file mod date will only change when the VM system pushes the changes to the file system, which can take an arbitrarily long time.

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.

<https://developer.apple.com/bug-reporting/>

Please post your bug number, just for the record.

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.

As to workarounds, I've got nothing )-:

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware



 _______________________________________________
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: "Gerriet M. Denkmann" <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>)

  • 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