Dear All,
I have a SCSI miniport driver for a virtual disk
and has implemented SCSIOP_MEDIUM_REMOVAL which will
simply return success and don’t do any prevention at
all. (Anyway I am not receiving any START STOP UNIT
command). I prevent write caching also by handling the
MODE SENSE/SELECT commands for MODE_PAGE_CACHING page.
Is there anything additional to be implemented for
getting the ‘optimize for quick removal’ option in
device manager ‘policies’ tab to be enabled?
When I checked in IOCTL_STORAGE_GET_HOTPLUG_INFO,
my settings are:
RemovableMedia:TRUE
MediaHotPlug:FALSE
DeviceHotPlug:TRUE
WriteCacheEnableOverride:FALSE
I wonder what should I do to make the MediaHotPlug
to be TRUE. I searched in classpnp and disk class
driver examples of DDK and found that it uses
ClassPnp\HackFlags DWORD entry in registry to store
the various flags in a DWORD. That implies it will
store 1 if the driver succeeds PREVENT MEDIUM REMOVAL
but doesn’t prevent at all. I checked in registry
under classpnp key of my disk and didn’t find any
entry for HackFlags.
My problem is that I want to be able to change
back/forth between optimize for removal and optimize
for performance. At present, my both are disabled and
‘optimize for performance’ option is checked with
write cache being disabled.
Thanks,
Janardhanan.R.
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com