Re: getfsstat from disk arbitration callback
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