VirtualBox

Ignore:
Timestamp:
Feb 11, 2019 12:19:52 PM (6 years ago)
Author:
vboxsync
Message:

Runtime/RTDvm: Add flag to indicate that a volume is contiguous on the underlying medium and add method to query start and end offset of the volume

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/dvm/dvm.cpp

    r76553 r77256  
    380380            }
    381381
    382             /** @todo shouldn't we close the format too here?  */
     382            pDvmFmtOpsMatch->pfnClose(pThis->hVolMgrFmt);
    383383        }
    384384    }
     
    663663}
    664664
     665RTDECL(int) RTDvmVolumeQueryRange(RTDVMVOLUME hVol, uint64_t *poffStart, uint64_t *poffEnd)
     666{
     667    PRTDVMVOLUMEINTERNAL pThis = hVol;
     668    AssertPtrReturn(pThis, VERR_INVALID_HANDLE);
     669    AssertReturn(pThis->u32Magic == RTDVMVOLUME_MAGIC, VERR_INVALID_HANDLE);
     670    AssertPtrReturn(poffStart, VERR_INVALID_POINTER);
     671    AssertPtrReturn(poffEnd, VERR_INVALID_POINTER);
     672
     673    return pThis->pVolMgr->pDvmFmtOps->pfnVolumeQueryRange(pThis->hVolFmt, poffStart, poffEnd);
     674}
     675
    665676RTDECL(int) RTDvmVolumeRead(RTDVMVOLUME hVol, uint64_t off, void *pvBuf, size_t cbRead)
    666677{
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