Re: Write on specific IOMedia through filter driver
Re: Write on specific IOMedia through filter driver
- Subject: Re: Write on specific IOMedia through filter driver
- From: Dan Markarian <email@hidden>
- Date: Thu, 12 May 2005 10:43:55 -0400
Hi Imran,
But still my driver writes the buffer on all the media objects.
It is entirely under the control of your driver. You need to avoid
multiplying those I/Os. We do not multiply I/Os on our own. Are the
two partitions in question not separate locations on the disk? Does
your stack not match the picture I drew?
Dan
On 10 May 2005, at 9:16 AM, Imran Kazi wrote:
Dear Dan
As per your previous mail, we have change the partition name of the
volumes,
and use media->getName() function which actually outputs the various
partition names.
My driver write call syntax is as follows-
getProvider->write(this, byteStart, WriteBuffer, completion);
where this -> IOService* client,
byteStart -> byte offset,
WriteBuffer -> IOMemoryDescriptor*,
completion -> IOStorageCompletion.
But still my driver writes the buffer on all the media objects.
How should we specify the write call of the driver to write the
buffer on
the specific media object? Or what parameters we have to pass to
the write
call, so that it is work for specific media object only?
In our case the write call takes IOService* as input and the GetName
() is
IOMedia Method, so even if we check the name and fires the write
call it
will write on all the media objects. How should we give IOService*
specific
media object?
Thanks
Imran
_______________________________________________
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