morpheus_core::disk::gpt_ops

Function shrink_partition

Source
pub fn shrink_partition<B: BlockIo>(
    block_io: B,
    partition_index: usize,
    new_size_mb: u64,
) -> Result<(), GptError>
Expand description

Shrink a partition to a new smaller size partition_index: GPT entry index (0-127) new_size_mb: New size in megabytes (must be smaller than current)