VirtualBox

Ignore:
Timestamp:
Nov 27, 2017 3:44:03 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119285
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/fs/fatvfs.cpp

    r69840 r69844  
    49404940
    49414941/**
    4942  * @interface_method_impl{RTVFSOPS,pfnIsRangeInUse}
    4943  */
    4944 static DECLCALLBACK(int) rtFsFatVol_IsRangeInUse(void *pvThis, RTFOFF off, size_t cb, bool *pfUsed)
    4945 {
     4942 * @interface_method_impl{RTVFSOPS,pfnQueryRangeState}
     4943 */
     4944static DECLCALLBACK(int) rtFsFatVol_QueryRangeState(void *pvThis, uint64_t off, size_t cb, bool *pfUsed)
     4945{
     4946
     4947
    49464948    RT_NOREF(pvThis, off, cb, pfUsed);
    49474949    return VERR_NOT_IMPLEMENTED;
     
    49624964    0 /* fFeatures */,
    49634965    rtFsFatVol_OpenRoot,
    4964     rtFsFatVol_IsRangeInUse,
     4966    rtFsFatVol_QueryRangeState,
    49654967    RTVFSOPS_VERSION
    49664968};
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette