Re: Filtering disk vs. partitions
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Thread-index: Acfbb+JtIRzYekdjEdywDQAX8si2KA== Thread-topic: Filtering disk vs. partitions User-agent: Microsoft-Entourage/11.3.6.070618
Yes. One of the registry properties on IOMedia objects is "Whole" with a boolean value.
true is (generally) a disk, false is a slice/partition.
Possible Exception: I'd have to do some further testing, but some RAID drivers may show the merged of 2 (or more) disks as whole.
See, that's the thing. I'm not seeing anything sent to probe that has Whole set to true. I'm using this code to check: bool com_myCompany_driver_MyDriver::isWhole( IOService *object ) { bool result = false; OSBoolean *val = (OSBoolean*)(object->copyProperty("Whole", gIOServicePlane)); if (val != NULL) { result = val->isTrue(); val->release(); } return result; } Eric _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Eric Long