VirtualBox

Changeset 73172 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Jul 17, 2018 10:05:47 AM (6 years ago)
Author:
vboxsync
Message:

ntfsvfs.cpp: Apparently the index allocation bitmap in a directory can be larger than strictly necessary. (Observed on: win10-efi-amd64.vdi:/Windows/System32)

File:
1 edited

Legend:

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

    r73097 r73172  
    31053105                                           pszWhat, pIndexAlloc->cbValue, cbIndexNode);
    31063106        uint64_t const cNodes = pIndexAlloc->cbValue / cbIndexNode;
    3107         if (pIndexBitmap->cbValue != (RT_ALIGN_64(cNodes, 64) >> 3))
     3107        if (pIndexBitmap->cbValue < (RT_ALIGN_64(cNodes, 64) >> 3))
    31083108            return RTERRINFO_LOG_REL_SET_F(pErrInfo, VERR_VFS_BOGUS_FORMAT,
    3109                                            "%s: BITMAP size does not match INDEX_ALLOCATION: %#RX64, expected %#RX64 (cbIndexNode=%#x, cNodes=%#RX64)",
     3109                                           "%s: BITMAP size does not match INDEX_ALLOCATION: %#RX64, expected min %#RX64 (cbIndexNode=%#x, cNodes=%#RX64)",
    31103110                                           pszWhat, pIndexBitmap->cbValue, RT_ALIGN_64(cNodes, 64) >> 3, cbIndexNode, cNodes);
    31113111        uNodeAddressEnd = cNodes * pIdxRoot->cAddressesPerIndexNode;
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