Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question on Filter scheme driver example



Hi Yogesh,

If you match Apple_HFS content, then produce Apple_HFS content, then you would match recursively forever. It is advisable to either change the partition type to com_spsoftindia_HFS on the specific volumes the user is interested in enabling your software on, or if it needs to be transparent to all volumes, then add a property on the media object you produce, such that you can tell when it recurses in your probe() by checking for the property, and failing the match if you see it.

Dan

On 15 Jan 2005, at 8:21 AM, Yogesh P wrote:

Hi folks,

I had gone through the Mass storage driver pdf and according to the
example given in the pdf for Developing filter scheme driver write
sample filter scheme driver and it works fine for the diskimage which i
had created through hdiutil

In this example i specify "Content Hint" property as
MySoftwareCompany_MyContent in the IOKit personality for driver matching
and read/write calls in my filter scheme driver works fine when i write
or read on this partition.


But when i specify "Content Hint" property as Apple_HFS which i think is
the default content hint for the partitions created on MAC OS X and load
my filter scheme driver which also has this property with the value
Apple_HFS i doesn't get the read/write IOLogs on the console and sees
only start and init function IOLogs repeatedly.


I have four partitons with Apple_HFS content hint which i had created
during installation of MAC OS X.

I want to know if i specify the "Content Hint" as Apple_HFS will my
filter scheme driver work for all the four partitions other than the
diskimage partition i have created using hdiutil???


Thanks in advance, YOGESH PAHILWAN (SOFTWARE ENGINNER)

S P Software Technologies (I) Pvt. Ltd.
(An ISO 9001:2000 Company)
Pune, Maharashtra, India - 411 004.

Tel : 91-20-4006154, 4006983, 4007503.
Fax : 91-20-4006153.

Email : email@hidden
Visit us at : www.spsoftindia.com



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-kernel/ email@hidden


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:
http://lists.apple.com/mailman/options/darwin-kernel/email@hidden

This email sent to email@hidden
References: 
 >Question on Filter scheme driver example (From: Yogesh P <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.