Function disk::gpt::write_gpt_header

source ·
pub fn write_gpt_header(
    out: &mut impl Write,
    disk_guid: Uuid,
    partition_entries_crc32: u32,
    secondary_table_offset: u64,
    secondary: bool
) -> Result<(), Error>
Expand description

Write a GPT header for the disk.

It may either be a primary header (which should go at LBA 1) or a secondary header (which should go at the end of the disk).