Re: How to change ContentHint of a partition
Re: How to change ContentHint of a partition
- Subject: Re: How to change ContentHint of a partition
- From: Dan Markarian <email@hidden>
- Date: Tue, 1 Feb 2005 11:42:33 -0500
Hi Mekhala, Yogesh,
It would be up to your installation utility to modify. We do not support partition editing in the form of a library at the moment, however it is possible with /usr/sbin/pdisk as shown below. It is in open source in the diskdev_cmds project in Darwin.
<x-tad-smaller>localhost# pdisk /dev/rdisk1 -partitionEntry 2
Untitled Apple_HFS 64 1968
localhost# pdisk /dev/rdisk1 -deletePartition 2
localhost# pdisk /dev/rdisk1 -createPartition Untitled com_spsoftindia_HFS 64 1968
2
</x-tad-smaller>
You should not override Content Hint using setProperty(). You should include Content Mask with the value com_spsoftindia_HFS in your personality in your Info.plist and we take care of updating it on the provider media as appropriate when the match is successful.
Dan
On 1 Feb 2005, at 5:58 AM, Mekhala wrote:
Hi,
I have written a filter scheme driver and have set ContentHint to "MySoftware_MyContent". My concern is to modify ContentHint of the specific volume to "MySoftware_MyContent", so that my driver gets loaded for that particular partition only.
If I create logical volumes using diskutility, it puts the Content Hint value as "Apple_HFS" by default. If I have to load my driver
for this logical volume I have to override the Content Hint. But I don't know how to override this content hint.
Does diskutility provides any functionality to override the Content Hint of the partition without loosing partitions data???
I have also added some functionality in my filter scheme driver to override the Content Hint of the partition by reading the Content Hint of all the partitions by using function getContentHint() and override the value of this Content Hint by using setProperty() function but it is not changing the ContentHint. Kindly guide how can I modify the ContentHint of a volume.
Thanking you in anticipation.
Regards,
Mekhala
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden