Hi folks,
After a good amount of
effort we are now able to successfully write on the disk using filter scheme driver.
Now my user-space buffer
successfully passes to kernel through user-client. Thanks for all your valuable
help.
Thanks specially to Dan, GodFrey,
Garth and Parav for helping me out to solve the problem.
Now my driver exposes two
IOMedia's named /Volume/Vol1 and /Volume/Vol2 and my driver writes the user-space
buffer on both the media at particular byte offset.
Is there any way that my
driver write routine writes only on one specific IOMedia say (/Volume/Vol1),even
if my driver matches for both IOMedia's.
Is it possible to get the
name of the media from the IORegistry or is there any API available to get the
partition name from the IORegistry. So that we can match the partition name
which we get from the IORegistry and if the match gets successful then only my
driver write routine writes on that particular IOMedia say (/Volume/Vol1)only and
not on (/Volume/Vol2).
Awaiting your response
Thanks once again for all
valuable help.
Imran