more information about my class and my test. I add some log on the read function of my class. and notice that if i do some read on disk1s1, my read function will be called. if i do some read on disks1, my read function will not be called. my read operations like this:(using terminal) #dd if=/dev/disk1s1 of=/dev/null bs=4096 count=256 this will result my read function be called. If i do #dd if=/dev/disk1 of=/dev/null bs=4096 count=256 my read will not be called. 在 2012-7-4,下午2:14, Li Flost.Dexiong 写道:
These days I implement a class based on IOPartitionScheme, my child_media init with an content hint of "new_testdisk"; and use "new_testdisk" to set the childmedia name,
when I insert my disk, and my class was probed, and could start normally,
but when I use "diskutil list" in a terminal, it shown as below:
/dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *160.0 GB disk0 1: EFI 209.7 MB disk0s1 2: Apple_HFS Macintosh HD 159.7 GB disk0s2 /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? Also, are there any reference about how the "disk1s1" string was generate and record on my system?
Thanks.
Best regards, Flost.D.Li havefan2012@gmail.com
Best regards, Flost.D.Li havefan2012@gmail.com _______________________________________________ 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)
-
Li Flost.Dexiong