Re: Write on specific IOMedia through filter driver
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Hi Imran, Dan On 10 May 2005, at 9:16 AM, Imran Kazi wrote: Dear Dan where this -> IOService* client, byteStart -> byte offset, WriteBuffer -> IOMemoryDescriptor*, completion -> IOStorageCompletion. Thanks Imran _______________________________________________ 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... 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? 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); 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? This email sent to site_archiver@lists.apple.com
participants (1)
-
Dan Markarian