Changeset 69865 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Nov 28, 2017 7:09:42 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/fs/ntfsvfs.cpp
r69863 r69865 270 270 if (!pHdr->fNonResident) 271 271 { 272 uint16_t const offValue = RT_LE2H_U16(pHdr-> Res.offValue);273 uint32_t const cbValue = RT_LE2H_U32(pHdr-> Res.cbValue);272 uint16_t const offValue = RT_LE2H_U16(pHdr->u.Res.offValue); 273 uint32_t const cbValue = RT_LE2H_U32(pHdr->u.Res.cbValue); 274 274 Log2(("NTFS: Value: %#x LB %#x, fFlags=%#x bReserved=%#x\n", 275 offValue, cbValue, pHdr-> Res.fFlags, pHdr->Res.bReserved));275 offValue, cbValue, pHdr->u.Res.fFlags, pHdr->u.Res.bReserved)); 276 276 if ( offValue < cbMaxAttrib 277 277 && cbValue < cbMaxAttrib … … 384 384 { 385 385 Log2(("NTFS: VNC range %#RX64 .. %#RX64 (%#RX64 clusters)\n", 386 RT_LE2H_U64(pHdr-> NonRes.iVcnFirst), RT_LE2H_U64(pHdr->NonRes.iVcnLast),387 RT_LE2H_U64(pHdr-> NonRes.iVcnLast) - RT_LE2H_U64(pHdr->NonRes.iVcnFirst) + 1));386 RT_LE2H_U64(pHdr->u.NonRes.iVcnFirst), RT_LE2H_U64(pHdr->u.NonRes.iVcnLast), 387 RT_LE2H_U64(pHdr->u.NonRes.iVcnLast) - RT_LE2H_U64(pHdr->u.NonRes.iVcnFirst) + 1)); 388 388 Log2(("NTFS: cbAllocated %#RX64 (%Rhcb)\n", 389 RT_LE2H_U64(pHdr-> NonRes.cbAllocated), RT_LE2H_U64(pHdr->NonRes.cbAllocated)));389 RT_LE2H_U64(pHdr->u.NonRes.cbAllocated), RT_LE2H_U64(pHdr->u.NonRes.cbAllocated))); 390 390 Log2(("NTFS: cbInitialized %#RX64 (%Rhcb)\n", 391 RT_LE2H_U64(pHdr-> NonRes.cbInitialized), RT_LE2H_U64(pHdr->NonRes.cbInitialized)));392 uint16_t const offMappingPairs = RT_LE2H_U16(pHdr-> NonRes.offMappingPairs);391 RT_LE2H_U64(pHdr->u.NonRes.cbInitialized), RT_LE2H_U64(pHdr->u.NonRes.cbInitialized))); 392 uint16_t const offMappingPairs = RT_LE2H_U16(pHdr->u.NonRes.offMappingPairs); 393 393 Log2(("NTFS: offMappingPairs %#RX16\n", offMappingPairs)); 394 if ( pHdr-> NonRes.abReserved[0] || pHdr->NonRes.abReserved[1]395 || pHdr-> NonRes.abReserved[2] || pHdr->NonRes.abReserved[3] || pHdr->NonRes.abReserved[4] )396 Log2(("NTFS: abReserved %.7Rhxs\n", pHdr-> NonRes.abReserved));397 if (pHdr-> NonRes.uCompressionUnit != 0)398 Log2(("NTFS: Compression unit 2^%u clusters\n", pHdr-> NonRes.uCompressionUnit));394 if ( pHdr->u.NonRes.abReserved[0] || pHdr->u.NonRes.abReserved[1] 395 || pHdr->u.NonRes.abReserved[2] || pHdr->u.NonRes.abReserved[3] || pHdr->u.NonRes.abReserved[4] ) 396 Log2(("NTFS: abReserved %.7Rhxs\n", pHdr->u.NonRes.abReserved)); 397 if (pHdr->u.NonRes.uCompressionUnit != 0) 398 Log2(("NTFS: Compression unit 2^%u clusters\n", pHdr->u.NonRes.uCompressionUnit)); 399 399 400 400 if ( NTFSATTRIBHDR_SIZE_NONRES_COMPRESSED <= cbMaxAttrib … … 403 403 || offMappingPairs < NTFSATTRIBHDR_SIZE_NONRES_UNCOMPRESSED)) 404 404 Log2(("NTFS: cbCompressed %#RX64 (%Rhcb)\n", 405 RT_LE2H_U64(pHdr-> NonRes.cbCompressed), RT_LE2H_U64(pHdr->NonRes.cbCompressed)));406 else if (pHdr-> NonRes.uCompressionUnit != 0 && pHdr->NonRes.uCompressionUnit != 64)405 RT_LE2H_U64(pHdr->u.NonRes.cbCompressed), RT_LE2H_U64(pHdr->u.NonRes.cbCompressed))); 406 else if (pHdr->u.NonRes.uCompressionUnit != 0 && pHdr->u.NonRes.uCompressionUnit != 64) 407 407 Log2(("NTFS: !Error! Compressed attrib fields are out of bound!\n")); 408 408 … … 412 412 uint8_t const *pbPairs = &pbRec[offRec + offMappingPairs]; 413 413 uint32_t const cbMaxPairs = cbAttrib - offMappingPairs; 414 int64_t iVnc = pHdr-> NonRes.iVcnFirst;414 int64_t iVnc = pHdr->u.NonRes.iVcnFirst; 415 415 Log2(("NTFS: Mapping Pairs: %.*Rhxsd\n", cbMaxPairs, pbPairs)); 416 416 if (!iVnc && !*pbPairs)
Note:
See TracChangeset
for help on using the changeset viewer.