Hello Friends,
Does Win2k supports read-only disks? i.e no write access.
In order to make disk as read-only I am doing following in my scsiport
driver,
case SCSIOP_MODE_SENSE:{
PUCHAR Buffer = srb->DataBuffer;
PMODE_PARAMETER_HEADER mph = (PMODE_PARAMETER_HEADER)Buffer;
mph->ModeDataLength = sizeof( MODE_PARAMETER_HEADER );
mph->DeviceSpecificParameter = MODE_DSP_WRITE_PROTECT;
mph->MediumType = FixedMedia;
mph->BlockDescriptorLength = 0;
} break;
Basic Disk:
Selecting the volume in explore a dialog box is displayed as write-protect
and contents are not displayed in Windows explore for read/viewing, though
there is file system mounted and also the volume can be seen in Disk Mgmt.
Is there any way I can view the volume contents?
Dynamic Disk:
Dynamic disk with above code comes as off-line in Disk Mgmt on selectiing
“reactive” command, I am receiving multiple I/Os in our scsiport driver,
since these I/O are for write protect disk I am
failing the I/Os. I am assuming in order to update LDM database,
dynamic-disk drivers/services are attempting to write on to disk, my
questions is does dynamic disks should always have write access?or is
there a better way to tell LDM driver/services not to write on to
protected disks!
Regards,
-Anand
xxxxx@yahoo.com