Does Win2k supports read-only disks?

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

Have you tried returning a READ_ONLY_DIRECT_ACCESS_DEVICE on the INQUIRY
command?

Doug,
READ_ONLY_DIRECT_ACCESS_DEVICE -> holds good for CD_ROMS

I tried earlier pretending as removable disk (ex CD_ROM) passing similar
parameters but the problem is I am not able to access data on multi_volume
disks since CD_ROM does not support multi_volume! works great if there is
single volume on disk irrespective it is dyanmic or basic disk.
What I heard from Microsoft is they support read_only volumes in XP and
later platforms but not in Win2K.

Any idea on how to create multi_volme CD_ROMS?

Thanks for responding!
-Anand

> Any idea on how to create multi_volme CD_ROMS?

Respond to READ_TOC and other CD IOCTLs properly.

Max