Changeset 40027 in vbox for trunk/src/VBox/Runtime/common/dvm/dvmbsdlabel.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/dvmbsdlabel.cpp
r39083 r40027 466 466 } 467 467 468 DECLCALLBACK(bool) rtDvmFmtBsdLblVolumeIsRangeIntersecting(RTDVMVOLUMEFMT hVolFmt, 469 uint64_t offStart, size_t cbRange, 470 uint64_t *poffVol, 471 size_t *pcbIntersect) 472 { 473 bool fIntersect = false; 474 PRTDVMVOLUMEFMTINTERNAL pVol = hVolFmt; 475 476 if (RTDVM_RANGE_IS_INTERSECTING(pVol->offStart, pVol->cbVolume, offStart)) 477 { 478 fIntersect = true; 479 *poffVol = offStart - pVol->offStart; 480 *pcbIntersect = RT_MIN(cbRange, pVol->offStart + pVol->cbVolume - offStart); 481 } 482 483 return fIntersect; 484 } 485 468 486 DECLCALLBACK(int) rtDvmFmtBsdLblVolumeRead(RTDVMVOLUMEFMT hVolFmt, uint64_t off, void *pvBuf, size_t cbRead) 469 487 { … … 512 530 /* pfnVolumeGetFlags */ 513 531 rtDvmFmtBsdLblVolumeGetFlags, 532 /* pfnVolumeIsRangeIntersecting */ 533 rtDvmFmtBsdLblVolumeIsRangeIntersecting, 514 534 /* pfnVolumeRead */ 515 535 rtDvmFmtBsdLblVolumeRead,
Note:
See TracChangeset
for help on using the changeset viewer.