VirtualBox

Ignore:
Timestamp:
Nov 27, 2017 3:44:03 PM (7 years ago)
Author:
vboxsync
Message:

IPRT: VFS IsRangeInUse cleanup.

  • Renamed to RTVfsQueryRangeState / pfnQueryRangeState because it isn't a predicate returning a bool, but an IPRT status.
  • Changed the pfnIsRangeInUse offset parameter to uint64_t from RTFOFF since we don't want to deal with negative offset and the RTVfsIsRangeInUse API takes an unsigned value.
File:
1 edited

Legend:

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

    r69829 r69844  
    10711071
    10721072/**
    1073  * @interface_method_impl{RTVFSOPS,pfnIsRangeInUse}
    1074  */
    1075 static DECLCALLBACK(int) rtDvmVfsVol_IsRangeInUse(void *pvThis, RTFOFF off, size_t cb, bool *pfUsed)
     1073 * @interface_method_impl{RTVFSOPS,pfnQueryRangeState}
     1074 */
     1075static DECLCALLBACK(int) rtDvmVfsVol_QueryRangeState(void *pvThis, uint64_t off, size_t cb, bool *pfUsed)
    10761076{
    10771077    RT_NOREF(pvThis, off, cb, pfUsed);
     
    10931093    0 /* fFeatures */,
    10941094    rtDvmVfsVol_OpenRoot,
    1095     rtDvmVfsVol_IsRangeInUse,
     1095    rtDvmVfsVol_QueryRangeState,
    10961096    RTVFSOPS_VERSION
    10971097};
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