search for: bdrv_type_cdrom

Displaying 2 results from an estimated 2 matches for "bdrv_type_cdrom".

2009 Oct 27
2
[PATCH 3/4] scsi-disk: Factor out SCSI command emulation
...ATUS_GOOD; + int is_write; + uint8_t command; + uint32_t cluster_size = 1; + + command = cdb[0]; + + is_write = 0; + + if (!bdrv && command != 0x12 && command != 0x03) { + *out_len = 0; + return SENSE_LUN_NOT_SUPPORTED; } + + if (bdrv_get_type_hint(bdrv) == BDRV_TYPE_CDROM) { + cluster_size = 4; + } + switch (command) { case 0x0: DPRINTF("Test Unit Ready\n"); - if (!bdrv_is_inserted(s->dinfo->bdrv)) - goto notready; + if (!bdrv_is_inserted(bdrv)) + status = SENSE_LUN_NOT_READY; break; - case 0x03: - DPR...
2009 Oct 27
2
[PATCH 3/4] scsi-disk: Factor out SCSI command emulation
...ATUS_GOOD; + int is_write; + uint8_t command; + uint32_t cluster_size = 1; + + command = cdb[0]; + + is_write = 0; + + if (!bdrv && command != 0x12 && command != 0x03) { + *out_len = 0; + return SENSE_LUN_NOT_SUPPORTED; } + + if (bdrv_get_type_hint(bdrv) == BDRV_TYPE_CDROM) { + cluster_size = 4; + } + switch (command) { case 0x0: DPRINTF("Test Unit Ready\n"); - if (!bdrv_is_inserted(s->dinfo->bdrv)) - goto notready; + if (!bdrv_is_inserted(bdrv)) + status = SENSE_LUN_NOT_READY; break; - case 0x03: - DPR...