Re: A question about the filter scheme
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=paYYAAeRrC1muUf6bwUoZ3OBmfNMGxpHXsn+sMv+mvk=; b=cM2OJmEpELoF4f4s0swrX4kpl/XNBM2jd6WFJhoQoMZF8mEFTWy388Agirfa0L85sJ dc1LKS1p+TitYE33YU0i879wpiT4nrfACD938ipJmZX1yXXHfoSE214fdP782Ekcmuyx lTjKb220Nmb2tXSiqj6ibipFoRpkTOi/3+rVo= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=USNsfa/26AIWkeDPktmCaQLQ5ZJokx5mKhE51pMWuQ4TYPT+ETqAyWAjznXAIRLZwb 1nyRxjFwSMSRXddT3swDz8CAb3YOWEji1Wh+hPmKO3xM1XXfgCWgwZHDdr1tLdOuda7S HSWTGRJq4MOJ+kGpcphd1TnDzuUJl2bH5o//k= 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 <masterofmanythings@hotmail.com> 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: lexiongjia@gmail.com To: darwin-drivers@lists.apple.com; darwin-kernel@lists.apple.com 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 (Darwin-drivers@lists.apple.com) Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-drivers/masterofmanythings%40h...
This email sent to masterofmanythings@hotmail.com
________________________________ 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
XiongJia Le