Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 542b81bc authored by Mark Salyzyn's avatar Mark Salyzyn Committed by android-build-merger
Browse files

Merge "fs_mgr: liblp: add check failure for sectors_per_block" am: 76bf3703

am: aaf3e4eb

Change-Id: I166d43efbfc996af1a3bf6386455fcd56a47a47f
parents b6d1fb58 aaf3e4eb
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -386,6 +386,7 @@ bool MetadataBuilder::GrowPartition(Partition* partition, uint64_t aligned_size)
    }
    }


    const uint64_t sectors_per_block = device_info_.logical_block_size / LP_SECTOR_SIZE;
    const uint64_t sectors_per_block = device_info_.logical_block_size / LP_SECTOR_SIZE;
    CHECK_NE(sectors_per_block, 0);
    CHECK(sectors_needed % sectors_per_block == 0);
    CHECK(sectors_needed % sectors_per_block == 0);


    // Find gaps that we can use for new extents. Note we store new extents in a
    // Find gaps that we can use for new extents. Note we store new extents in a