pub fn plan_block_allocation<F>(
sb: &Superblock,
groups: &[BlockGroupDescriptor],
count: u32,
hint_group: u32,
bitmap_reader: F,
) -> Result<BlockAllocationPlan>Expand description
Plan allocation of count contiguous blocks.
bitmap_reader is called with a BGD’s bg_block_bitmap and must return
the full bitmap block (block_size bytes). Groups are tried in order:
hint_group first, then wrapping forward. For groups flagged
BLOCK_UNINIT, the bitmap is treated as all-free without reading.