Changeset 76256 in vbox for trunk/src/VBox/Runtime/common/vfs
- Timestamp:
- Dec 16, 2018 8:36:28 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 127526
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/vfs/vfsmount.cpp
r76216 r76256 359 359 static bool rtVfsMountIsExt(PCEXTSUPERBLOCK pSuperBlock) 360 360 { 361 if (RT_LE2H_U16(pSuperBlock->u16Signature) != EXT_S IGNATURE)362 return false; 363 364 uint32_t cShift = RT_LE2H_U32(pSuperBlock->c BitsShiftLeftBlockSize);361 if (RT_LE2H_U16(pSuperBlock->u16Signature) != EXT_SB_SIGNATURE) 362 return false; 363 364 uint32_t cShift = RT_LE2H_U32(pSuperBlock->cLogBlockSize); 365 365 if (cShift > 54) 366 366 { 367 Log2(("rtVfsMountIsExt: c BitsShiftLeftBlockSize=%#x: out of range\n", cShift));368 return false; 369 } 370 371 cShift = RT_LE2H_U32(pSuperBlock->c BitsShiftLeftFragmentSize);367 Log2(("rtVfsMountIsExt: cLogBlockSize=%#x: out of range\n", cShift)); 368 return false; 369 } 370 371 cShift = RT_LE2H_U32(pSuperBlock->cLogClusterSize); 372 372 if (cShift > 54) 373 373 { 374 Log2(("rtVfsMountIsExt: c BitsShiftLeftFragmentSize=%#x: out of range\n", cShift));374 Log2(("rtVfsMountIsExt: cLogClusterSize=%#x: out of range\n", cShift)); 375 375 return false; 376 376 }
Note:
See TracChangeset
for help on using the changeset viewer.