Build fix.

This commit is contained in:
Adrien Destugues 2017-03-30 18:40:34 +02:00
parent c8a27537a7
commit 6bbb8b3022

View File

@ -207,15 +207,8 @@ ext2_super_block::IsValid()
|| BlocksPerGroup() != (1UL << BlockShift()) * 8
|| InodeSize() > (1UL << BlockShift())
|| RevisionLevel() > EXT2_MAX_REVISION
|| ReservedGDTBlocks() > (1UL << BlockShift()) / 4)
|| ReservedGDTBlocks() > (1UL << BlockShift()) / 4) {
return false;
if (Has64bitFeature()) {
if (GroupDescriptorSize() > EXT2_BLOCK_GROUP_64BIT_SIZE || GroupDescriptorSize() < EXT2_BLOCK_GROUP_NORMAL_SIZE)
return false;
}
else {
if (GroupDescriptorSize() != EXT2_BLOCK_GROUP_NORMAL_SIZE)
return false;
}
return true;