On Wed, Jul 4, 2012 at 8:14 AM, Li Flost.Dexiong <havefan2012@gmail.com> wrote:
/dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: *16.1 GB disk1 1: new_testdisk 16.1 GB disk1s1
I'm wandering why there is a #0 on my disk, when and how does it create?
"disk 0" is the whole disk that the partition scheme sits inside. Look at the IOMedia hierarchy in IORegistryExplorer and it'll make more sense.
Also, are there any reference about how the "disk1s1" string was generate and record on my system?
The "1" is generated from the location you set on your newly created IOMedia object like so: newMedia->setLocation("1"); This only happens if the IOMedia object isn't "whole". If it's whole, a new diskX node is generated. HTH phil _______________________________________________ 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: https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Phil Jordan