Disk Arbitration: Preventing the disk insertion (unrecognized volume) dialog
Disk Arbitration: Preventing the disk insertion (unrecognized volume) dialog
- Subject: Disk Arbitration: Preventing the disk insertion (unrecognized volume) dialog
- From: Ron Aldrich <email@hidden>
- Date: Wed, 15 Aug 2007 18:05:28 -0700
Folks,
I'm working on a disk formatting utility to support some specialized
media and file system types, and I'm running into a bit of a problem
with Disk Arbitration.
I don't seem to be able to prevent the disk insertion (unrecognized
volume) dialog from appearing after I issue a low-level format call
to the device.
Currently, I use diskutil to unmount the disk (if it was mounted -
it's possible that there is unformatted media in the drive, and
therefore no IOMedia object).
I register a disk appeared callback to the Disk Arbitration framework.
I then ask the driver to format the media - if it had an IOMedia
object, it tears it down, and formats the disk, and re-enables polling.
This is where things go bad.
The driver creates an IOMedia object for the freshly formatted disk.
My disk appeared callback gets called.
In the disk appeared callback, I call DADiskClaim, in an attempt to
prevent the unrecognized volume dialog from appearing. Apparently
it's too late at this point.
My diskClaimed callback gets called, the disk gets partitioned, and
everything proceeds normally, except that there is an unwanted dialog
on the screen.
So, how should I be intercepting that dialog?
Thanks for your time,
Ron Aldrich
Software Architects, Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden