VirtualBox

Changeset 37270 in vbox for trunk/src/VBox/Runtime/include


Ignore:
Timestamp:
May 30, 2011 9:25:42 PM (14 years ago)
Author:
vboxsync
Message:

IPRT/Dvm: Commit BSD disklabel support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/dvm.h

    r37024 r37270  
    227227typedef const RTDVMFMTOPS *PCRTDVMFMTOPS;
    228228
     229/** Converts a LBA number to the byte offset. */
     230#define RTDVM_LBA2BYTE(lba, disk) ((lba) * (disk)->cbSector)
     231/** Converts a Byte offset to the LBA number. */
     232#define RTDVM_BYTE2LBA(off, disk) ((off) / (disk)->cbSector)
     233
    229234/**
    230235 * Returns the number of sectors in the disk.
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