Re: A question about the filter scheme
Re: A question about the filter scheme
- Subject: Re: A question about the filter scheme
- From: "XiongJia Le" <email@hidden>
- Date: Mon, 14 Jul 2008 16:08:39 +0800
Thanks. But I am not understand, Is only the "Content hint" can
control the driver match action ?
Because think the AppleRAID Driver is base on IOFilter. And AppleRAID
can filter all local disk.
So,I read the AppleRAID Driver from Open Darwin.
That was got from the AppleRAID Driver's Info.plist file.
<key>IOPropertyMatch</key>
- <array>
- <dict>
<key>Content Hint</key>
<string>Apple_Label</string>
</dict>
- <dict>
<key>Content Hint</key>
<string>4C616265-6C00-11AA-AA11-00306543ECAC</string>
</dict>
</array>
Should I need add this to my driver's Info.plist file?
I am trying this. If you know some info about this tell me thanks.
Thanks,
Xiongjia Le
On Mon, Jul 14, 2008 at 11:33 AM, Tony Wong
<email@hidden> wrote:
> I am not sure I am right but at least this is what I experienced.
>
> Content hint is difficult to use because you will have to specify
> the condition for each partition. If you write the driver for
> yoruself, it is fine but it is not easy if you want to send it to
> many customers.
>
> I have worked around this by checking the properties of the
> IO chain. For example, disks on the Fiber Channel have different
> properties like UNIT_SERIAL_NUMBER, etc and on board local disks
> do not have (not sure this is the correct example but U get my point).
> By checking on these properties, you can distinguish if a drive is
> local or not.
>
> Tony Wong
>
>> Date: Sun, 13 Jul 2008 22:17:28 +0800
>> From: email@hidden
>> To: email@hidden; email@hidden
>> CC:
>> Subject: A question about the filter scheme
>>
>> Hey folks,
>>
>> I am an newbie in the KExt programing. But I need write a local disk
>> I/O filter Driver in OS X.
>> I have read the filter scheme sample at the apple document site. But I
>> found I/O filter scheme need a content hint to matched attach
>> partition.
>>
>> Is there any way to filter all local hard disk by one filter scheme
>> driver?
>>
>> Thanks,
>> Xiongjia Le
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Darwin-drivers mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>>
>> This email sent to email@hidden
>
>
> ________________________________
> The i'm Talkaton. Can 30-days of conversation change the world? Find out
> now.
_______________________________________________
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