VirtualBox

Changeset 69888 in vbox for trunk/src/VBox/Runtime/common/fs


Ignore:
Timestamp:
Nov 30, 2017 5:49:44 PM (7 years ago)
Author:
vboxsync
Message:

iprt/ntfsvfs.cpp: build fix, logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/fs/ntfsvfs.cpp

    r69885 r69888  
    11241124
    11251125
     1126/**
     1127 * Allocate and parse an MFT record, returning a core object structure.
     1128 *
     1129 * @returns IPRT status code.
     1130 * @param   pThis               The NTFS volume instance.
     1131 * @param   idxMft              The index of the MTF record.
     1132 * @param   ppCore              Where to return the core object structure.
     1133 * @param   pErrInfo            Where to return error details.  Optional.
     1134 */
    11261135static int rtFsNtfsVol_NewCoreForMftIdx(PRTFSNTFSVOL pThis, uint64_t idxMft, PRTFSNTFSCORE *ppCore, PRTERRINFO pErrInfo)
    11271136{
     1137    *ppCore = NULL;
    11281138    Assert(pThis->pMftData);
    11291139    Assert(RTAvlU64Get(&pThis->MftRoot, idxMft) == NULL);
     
    14351445        {
    14361446            *pfUsed = true;
    1437             LogFlow(("rtFsNtfsVol_QueryRangeState: %RX64 LB %#x - used\n", off, cb));
     1447            LogFlow(("rtFsNtfsVol_QueryRangeState: %RX64 LB %#x - used\n", off & ~(uint64_t)(pThis->cbCluster - 1), cb));
    14381448            return VINF_SUCCESS;
    14391449        }
     
    14421452    } while (cClusters-- > 0);
    14431453
    1444     LogFlow(("rtFsNtfsVol_QueryRangeState: %RX64 LB %#x - unused\n", off, cb));
     1454    LogFlow(("rtFsNtfsVol_QueryRangeState: %RX64 LB %#x - unused\n", off & ~(uint64_t)(pThis->cbCluster - 1), cb));
    14451455    *pfUsed = false;
    14461456    return VINF_SUCCESS;
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