Is there a way to determine the sector offset on the disk of a volume
(or partition) without actually parsing the partition table?
I don't believe so. In the end, IOKit (specifically the
IOPartitionScheme classes) is the final authority on this and the
information is not simply exported from IOPartitionScheme drivers.
Most (all?) of the PartitionScheme's hide free space gaps by not
publishing IOMedia objects for them. And nothing in the overall
design requires that IOMedia objects be created in the same order as
they exist on disk. Obviously such a driver would be unusual... but
that's not much to go on when it comes to mass storage!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden