• 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: getfsstat from disk arbitration callback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getfsstat from disk arbitration callback


  • Subject: Re: getfsstat from disk arbitration callback
  • From: Dominic Giampaolo <email@hidden>
  • Date: Tue, 17 Jul 2007 09:58:33 -0700

using getfsstat() to get the list of mounted devices in the file system. Usign disk arbitration framework to register for volume mount/unmount callbacks.

You are using the wrong DiskArb callback -- the DiskAppeared
callback happens when the *disk* appears, not the volumes
that are on the disk.  Adding the call to sleep() makes your
code wait long enough for the volumes to mount.

It will work better if you register for a MountApproval
callback:

DARegisterDiskMountApprovalCallback(session, NULL, volume_mounted_callback, NULL);


--dominic

_______________________________________________
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


  • Follow-Ups:
    • Re: getfsstat from disk arbitration callback
      • From: Dan Markarian <email@hidden>
References: 
 >getfsstat from disk arbitration callback (From: Ameen <email@hidden>)

  • Prev by Date: getfsstat from disk arbitration callback
  • Next by Date: Re: getfsstat from disk arbitration callback
  • Previous by thread: getfsstat from disk arbitration callback
  • Next by thread: Re: getfsstat from disk arbitration callback
  • Index(es):
    • Date
    • Thread