• 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: FSEventsCopyUUIDForDevice() occasionally changes value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FSEventsCopyUUIDForDevice() occasionally changes value


  • Subject: Re: FSEventsCopyUUIDForDevice() occasionally changes value
  • From: James Bucanek <email@hidden>
  • Date: Fri, 20 Nov 2015 09:44:28 -0700


Dominic Giampaolo
November 20, 2015 at 5:09 AM
It's expected if something causes fseventsd to lose track of events and thus reset its history. The main reasons fseventsd can lose track of events is if the system crashes or reboots unexpectedly. An event overrun or fseventsd itself crashing can also cause it but that's pretty rare. The other thing that can cause it is if a volume is modified by someone other than an fseventsd capable system. In that case we don't know what changed and thus have to toss the history and generate a new volume uuid.

I knew some of that. The volume wouldn't be touched by any non-OS X systema, but I do regularly boot into newer/older versions of OS X for testing. Could that cause it?

Generally fseventsd will print a log message when this happens. Check your recent system logs to see if there are any messages.

I will look for those.

Note that the uuid returned by FSEventsCopoyUUIDForDevice() is not at all related to the per-volume uuid vended by through the DiskArb api's.

I do understand that this UUID is exclusively for determining if two FSEvent streams are equivalent, which is what I'm using it for. My issue was that I was keeping a dictionary with UUID/last-event-id pairs in a persistent store. What I discovered is, with the UUID occasionally changing, is that I had one system with almost 200 entries in this dictionary. Not a big deal, and easily dealt with (I now just toss entries if they're more than a month or so old), but it was surprising.

Thanks for the info,

James
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >FSEventsCopyUUIDForDevice() occasionally changes value (From: James Bucanek <email@hidden>)
 >Re: FSEventsCopyUUIDForDevice() occasionally changes value (From: Dominic Giampaolo <email@hidden>)

  • Prev by Date: Re: FSEventsCopyUUIDForDevice() occasionally changes value
  • Previous by thread: Re: FSEventsCopyUUIDForDevice() occasionally changes value
  • Index(es):
    • Date
    • Thread