mirror of https://github.com/acidanthera/audk.git
MdeModulePkg ScsiDiskDxe: Set block I/O media of SCSI CDROM to read-only
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19443 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
41628cbc7c
commit
a5d28900d2
|
@ -256,6 +256,7 @@ ScsiDiskDriverBindingStart (
|
|||
|
||||
case EFI_SCSI_TYPE_CDROM:
|
||||
ScsiDiskDevice->BlkIo.Media->BlockSize = 0x800;
|
||||
ScsiDiskDevice->BlkIo.Media->ReadOnly = TRUE;
|
||||
MustReadCapacity = FALSE;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue