Changeset 48947 in vbox for trunk/src/VBox/Devices/Storage/VSCSI
- Timestamp:
- Oct 7, 2013 9:41:00 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 89644
- Location:
- trunk/src/VBox/Devices/Storage/VSCSI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VSCSI/VSCSILun.cpp
r44528 r48947 120 120 * 121 121 * @returns VBox status code. 122 * @param hVScsiLun The virtual SCSI LUN 122 * @param hVScsiLun The virtual SCSI LUN 123 123 * mounting the medium. 124 124 */ … … 142 142 * 143 143 * @returns VBox status code. 144 * @param hVScsiLun The virtual SCSI LUN 144 * @param hVScsiLun The virtual SCSI LUN 145 145 * mounting the medium. 146 146 */ -
trunk/src/VBox/Devices/Storage/VSCSI/VSCSILunMmc.cpp
r46597 r48947 186 186 unsigned uCmd = pVScsiReq->pbCDB[0]; 187 187 188 /* 188 /* 189 189 * GET CONFIGURATION, GET EVENT/STATUS NOTIFICATION, INQUIRY, and REQUEST SENSE commands 190 190 * operate even when a unit attention condition exists for initiator; every other command … … 194 194 { 195 195 /* 196 * A note on media changes: As long as a medium is not present, the unit remains in 197 * the 'not ready' state. Technically the unit becomes 'ready' soon after a medium 198 * is inserted; however, we internally keep the 'not ready' state until we've had 196 * A note on media changes: As long as a medium is not present, the unit remains in 197 * the 'not ready' state. Technically the unit becomes 'ready' soon after a medium 198 * is inserted; however, we internally keep the 'not ready' state until we've had 199 199 * a chance to report the UNIT ATTENTION status indicating a media change. 200 200 */ … … 205 205 pVScsiLunMmc->Core.fReady = true; 206 206 } 207 else 207 else 208 208 rcReq = vscsiLunReqSenseErrorSet(pVScsiLun, pVScsiReq, SCSI_SENSE_NOT_READY, 209 209 SCSI_ASC_MEDIUM_NOT_PRESENT, 0x00); … … 431 431 cbMax = vscsiBE2HU16(&pVScsiReq->pbCDB[7]); 432 432 fMSF = (pVScsiReq->pbCDB[1] >> 1) & 1; 433 switch (format) 433 switch (format) 434 434 { 435 435 case 0x00: … … 461 461 vscsiDeviceReqComplete(pVScsiLun->pVScsiDevice, pVScsiReq, rcReq, false, VINF_SUCCESS); 462 462 } 463 else if (!cSectorTransfer) 463 else if (!cSectorTransfer) 464 464 { 465 465 /* A 0 transfer length is not an error. */
Note:
See TracChangeset
for help on using the changeset viewer.