Re: IOMedia Child instance and diskutil...
Re: IOMedia Child instance and diskutil...
- Subject: Re: IOMedia Child instance and diskutil...
- From: Kumar Gaurav <email@hidden>
- Date: Tue, 27 Aug 2013 22:21:17 +0530
Hi,
Sorry for the typo error below post. It was /dev/disk2 provided to diskutil erasedisk command. Even though disk "/dev/disk2" is set as "Writable" property as "No" and "Open" property as "no", it formats the drive. Which property should be set to stop diskutil to erase the parent which has child media.
Thanks, Kumar On Aug 26, 2013, at 8:32 PM, Kumar Gaurav wrote: Hi All,
I am utilizing Filter Scheme Kernel module using IOKit. The child media exist on "/dev/disk2s2s1" and is mounted and parent media "/dev/disk2s2". I have set property ("Writable" = No) of the disks (/dev/disk2s2 and /dev/disk2s2s1) to be read only. When i use "Disk Utilty" application i am unable to erase "/dev/disk2s2". But when i use "diskutil erasedisk" command it erases the disk. It seems it does not value the property in ioreg. What should i do so that "diskutil erasedisk" does not erase my parent media. Also, diskutil commands event is not received by the child media methods like stop, free. How to manage this?
Thanks, Kumar
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden