VirtualBox

Changeset 67326 in vbox for trunk


Ignore:
Timestamp:
Jun 9, 2017 7:37:52 PM (8 years ago)
Author:
vboxsync
Message:

iso9660.h,iso9660vfs.cpp: Corrected the extended attribute length member of the directory records.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/formats/iso9660.h

    r67278 r67326  
    155155    /** 0x00: Length of this record in bytes. */
    156156    uint8_t             cbDirRec;
    157     /** 0x01: Extended attribute record length in bytes? */
    158     uint8_t             cbExtAttr;
     157    /** 0x01: Extended attribute record length in logical blocks. */
     158    uint8_t             cExtAttrBlocks;
    159159    /** 0x02: Location of extent (logical block number).
    160160     * @note Misaligned. */
  • trunk/src/VBox/Runtime/common/fs/iso9660vfs.cpp

    r66768 r67326  
    278278    pCore->cExtents             = 1;
    279279    pCore->FirstExtent.cbExtent = pCore->cbObject;
    280     pCore->FirstExtent.offDisk  = ISO9660_GET_ENDIAN(&pDirRec->offExtent) * (uint64_t)pVol->cbBlock;
     280    pCore->FirstExtent.offDisk  = (ISO9660_GET_ENDIAN(&pDirRec->offExtent) + pDirRec->cExtAttrBlocks) * (uint64_t)pVol->cbBlock;
    281281
    282282    rtFsIso9660DateTime2TimeSpec(&pCore->ModificationTime, &pDirRec->RecTime);
     
    14411441                  offRec,
    14421442                  pDirRec->cbDirRec,
    1443                   pDirRec->cbExtAttr,
     1443                  pDirRec->cExtAttrBlocks,
    14441444                  ISO9660_GET_ENDIAN(&pDirRec->cbData),
    14451445                  ISO9660_GET_ENDIAN(&pDirRec->offExtent),
     
    17471747
    17481748        Log2(("ISO9660:  RootDir.cbDirRec:                   %#RX8\n", pVolDesc->RootDir.DirRec.cbDirRec));
    1749         Log2(("ISO9660:  RootDir.cbExtAttr:                  %#RX8\n", pVolDesc->RootDir.DirRec.cbExtAttr));
     1749        Log2(("ISO9660:  RootDir.cExtAttrBlocks:             %#RX8\n", pVolDesc->RootDir.DirRec.cExtAttrBlocks));
    17501750        Log2(("ISO9660:  RootDir.offExtent:                  {%#RX32,%#RX32}\n", RT_BE2H_U32(pVolDesc->RootDir.DirRec.offExtent.be), RT_LE2H_U32(pVolDesc->RootDir.DirRec.offExtent.le)));
    17511751        Log2(("ISO9660:  RootDir.cbData:                     {%#RX32,%#RX32}\n", RT_BE2H_U32(pVolDesc->RootDir.DirRec.cbData.be), RT_LE2H_U32(pVolDesc->RootDir.DirRec.cbData.le)));
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