Re: Detect boot volume in probe()
Re: Detect boot volume in probe()
- Subject: Re: Detect boot volume in probe()
- From: Michael Smith <email@hidden>
- Date: Tue, 4 Dec 2007 09:33:47 -0800
On Dec 4, 2007, at 8:54 AM, Eric Long wrote:
That's a complex question that doesn't have a simple answer. What are
you really trying to do?
My software blocks external devices from mounting until a user
authorizes
the mount. In the case of an external boot volume though, that can
never
happen, since if the driver holds up that device, there will never
be the
opportunity to authorize.
In the case of the boot device search, you can't reliably do this.
The device that will be chosen as the root device is not reliably
knowable until the decision is actually made.
One perhaps obvious question here; why are you trying to block
mounting at this point? Why not get involved with Disk Arbitration
instead?
If your concern is with mounting volumes, blocking the probing of disk
devices assumes a direct relationship between the two that, as
Shantonu points out, does not necessarily exist.
= Mike
_______________________________________________
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