Changeset 77970 in vbox
- Timestamp:
- Apr 1, 2019 1:35:07 AM (6 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/dvm/dvm.cpp
r77256 r77970 663 663 } 664 664 665 RTDECL(int) RTDvmVolumeQueryRange(RTDVMVOLUME hVol, uint64_t *poffStart, uint64_t *poff End)665 RTDECL(int) RTDvmVolumeQueryRange(RTDVMVOLUME hVol, uint64_t *poffStart, uint64_t *poffLast) 666 666 { 667 667 PRTDVMVOLUMEINTERNAL pThis = hVol; … … 669 669 AssertReturn(pThis->u32Magic == RTDVMVOLUME_MAGIC, VERR_INVALID_HANDLE); 670 670 AssertPtrReturn(poffStart, VERR_INVALID_POINTER); 671 AssertPtrReturn(poff End, VERR_INVALID_POINTER);672 673 return pThis->pVolMgr->pDvmFmtOps->pfnVolumeQueryRange(pThis->hVolFmt, poffStart, poff End);671 AssertPtrReturn(poffLast, VERR_INVALID_POINTER); 672 673 return pThis->pVolMgr->pDvmFmtOps->pfnVolumeQueryRange(pThis->hVolFmt, poffStart, poffLast); 674 674 } 675 675 -
trunk/src/VBox/Runtime/common/dvm/dvmbsdlabel.cpp
r77256 r77970 483 483 } 484 484 485 static DECLCALLBACK(int) rtDvmFmtBsdLblVolumeQueryRange(RTDVMVOLUMEFMT hVolFmt, uint64_t *poffStart, uint64_t *poff End)485 static DECLCALLBACK(int) rtDvmFmtBsdLblVolumeQueryRange(RTDVMVOLUMEFMT hVolFmt, uint64_t *poffStart, uint64_t *poffLast) 486 486 { 487 487 PRTDVMVOLUMEFMTINTERNAL pVol = hVolFmt; 488 488 *poffStart = pVol->offStart; 489 *poff End= pVol->offStart + pVol->cbVolume - 1;489 *poffLast = pVol->offStart + pVol->cbVolume - 1; 490 490 return VINF_SUCCESS; 491 491 } -
trunk/src/VBox/Runtime/common/dvm/dvmgpt.cpp
r77256 r77970 497 497 } 498 498 499 static DECLCALLBACK(int) rtDvmFmtGptVolumeQueryRange(RTDVMVOLUMEFMT hVolFmt, uint64_t *poffStart, uint64_t *poff End)499 static DECLCALLBACK(int) rtDvmFmtGptVolumeQueryRange(RTDVMVOLUMEFMT hVolFmt, uint64_t *poffStart, uint64_t *poffLast) 500 500 { 501 501 PRTDVMVOLUMEFMTINTERNAL pVol = hVolFmt; 502 502 *poffStart = pVol->offStart; 503 *poff End= pVol->offStart + pVol->cbVolume - 1;503 *poffLast = pVol->offStart + pVol->cbVolume - 1; 504 504 return VINF_SUCCESS; 505 505 } -
trunk/src/VBox/Runtime/common/dvm/dvmmbr.cpp
r77256 r77970 648 648 } 649 649 650 static DECLCALLBACK(int) rtDvmFmtMbrVolumeQueryRange(RTDVMVOLUMEFMT hVolFmt, uint64_t *poffStart, uint64_t *poff End)650 static DECLCALLBACK(int) rtDvmFmtMbrVolumeQueryRange(RTDVMVOLUMEFMT hVolFmt, uint64_t *poffStart, uint64_t *poffLast) 651 651 { 652 652 PRTDVMVOLUMEFMTINTERNAL pVol = hVolFmt; 653 653 *poffStart = pVol->pEntry->offPart; 654 *poff End= pVol->pEntry->offPart + pVol->pEntry->cbPart - 1;654 *poffLast = pVol->pEntry->offPart + pVol->pEntry->cbPart - 1; 655 655 return VINF_SUCCESS; 656 656 } -
trunk/src/VBox/Runtime/include/internal/dvm.h
r77256 r77970 220 220 * @returns IPRT status code. 221 221 * @param hVolFmt The format specific volume handle. 222 * @param poffStart Where to store the start offset in bytes on the underlying medium. 223 * @param poffEnd Where to store the end offset in bytes on the underlying medium (inclusive). 224 */ 225 DECLCALLBACKMEMBER(int, pfnVolumeQueryRange)(RTDVMVOLUMEFMT hVolFmt, uint64_t *poffStart, uint64_t *poffEnd); 222 * @param poffStart Where to store the start byte offset on the 223 * underlying medium. 224 * @param poffLast Where to store the last byte offset on the 225 * underlying medium (inclusive). 226 */ 227 DECLCALLBACKMEMBER(int, pfnVolumeQueryRange)(RTDVMVOLUMEFMT hVolFmt, uint64_t *poffStart, uint64_t *poffLast); 226 228 227 229 /**
Note:
See TracChangeset
for help on using the changeset viewer.