Re: Question on Filter scheme driver example
Re: Question on Filter scheme driver example
- Subject: Re: Question on Filter scheme driver example
- From: Yogesh P <email@hidden>
- Date: 28 Jan 2005 18:39:26 +0530
Hi Dan,
I have some concerns about the content hint property in IOMedia
object.As u mention in your mail that i have to create partition type of
com_spsoftindia_HFS on the specific volumes so that my driver gets
loaded for that partitions.
My concern is 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 dont
know how to override this content hint using diskutility.
Is diskutility provides some functionality to override the Content Hint
of the partitions???
Is that i have to provide some functionality in my filter 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????
Is this a kind of thing i have to do to achieve this???
I also had to write userclient for this driver.Is there any
documentation or sample code for writing userclient for filter scheme
driver????
Any helps certainly helps me to solve this problem.
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
On Tue, 2005-01-18 at 19:40, Dan Markarian wrote:
> 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:
> > 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:
This email sent to email@hidden