VirtualBox

Changeset 77021 in vbox for trunk/include/VBox/scsiinline.h


Ignore:
Timestamp:
Jan 28, 2019 2:56:08 PM (6 years ago)
Author:
vboxsync
Message:

scsiinline.h: scsiMSF2LBA() needs to subtract 150 from the calculated LBA value to be in compliance with the MMC6 spec (see table 647 - LBA to MSF translation) and in sync with scsiLBA2MSF()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/scsiinline.h

    r76585 r77021  
    184184DECLINLINE(uint32_t) scsiMSF2LBA(const uint8_t *pbBuf)
    185185{
    186     return (pbBuf[0] * 60 + pbBuf[1]) * 75 + pbBuf[2];
     186    return (pbBuf[0] * 60 + pbBuf[1]) * 75 + pbBuf[2] - 150;
    187187}
    188188
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette