Hi Alexandre,
In irc we discussed ioctl's with devices, and how ioctl's go to ntdll/cdrom.c if the drive is fd backed, and to mountmgr.sys if it isn't. For itunes it needs raw disk access, but also an ioctl from mountmgr.
What if we always map access to \.\X: is always mapped to mountmgr, and let mountmanager open \.\X:: that would be mapped to /dosdevices/x::, any ioctl, and read/write stuff that mountmgr can't handle can then be forwarded to the raw device, if available.
Do you think that would be an appropiate solution?
Cheers, Maarten.
"Maarten Lankhorst" m.b.lankhorst@gmail.com writes:
What if we always map access to \.\X: is always mapped to mountmgr, and let mountmanager open \.\X:: that would be mapped to /dosdevices/x::, any ioctl, and read/write stuff that mountmgr can't handle can then be forwarded to the raw device, if available.
Do you think that would be an appropiate solution?
No, things that can be done locally through the fd shouldn't have to go through mountmgr, especially not read/writes.