Skip to content
Snippets Groups Projects
Commit 76bf3703 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "fs_mgr: liblp: add check failure for sectors_per_block"

parents 91a25771 9fa35cc1
No related branches found
No related tags found
No related merge requests found
......@@ -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;
CHECK_NE(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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment