Changeset 40027 in vbox for trunk/src/VBox/Runtime/common/dvm/dvmgpt.cpp
- Timestamp:
- Feb 7, 2012 11:09:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/dvm/dvmgpt.cpp
r39083 r40027 482 482 NOREF(hVolFmt); /* No supported flags for now. */ 483 483 return 0; 484 } 485 486 DECLCALLBACK(bool) rtDvmFmtGptVolumeIsRangeIntersecting(RTDVMVOLUMEFMT hVolFmt, 487 uint64_t offStart, size_t cbRange, 488 uint64_t *poffVol, 489 size_t *pcbIntersect) 490 { 491 bool fIntersect = false; 492 PRTDVMVOLUMEFMTINTERNAL pVol = hVolFmt; 493 494 if (RTDVM_RANGE_IS_INTERSECTING(pVol->offStart, pVol->cbVolume, offStart)) 495 { 496 fIntersect = true; 497 *poffVol = offStart - pVol->offStart; 498 *pcbIntersect = RT_MIN(cbRange, pVol->offStart + pVol->cbVolume - offStart); 499 } 500 501 return fIntersect; 484 502 } 485 503 … … 530 548 /* pfnVolumeGetFlags */ 531 549 rtDvmFmtGptVolumeGetFlags, 550 /* pfnVolumeIsRangeIntersecting */ 551 rtDvmFmtGptVolumeIsRangeIntersecting, 532 552 /* pfnVolumeRead */ 533 553 rtDvmFmtGptVolumeRead,
Note:
See TracChangeset
for help on using the changeset viewer.