Function gpt::header::write_header
source · pub fn write_header(
p: impl AsRef<Path>,
uuid: Option<Uuid>,
sector_size: LogicalBlockSize,
) -> Result<Uuid>
Expand description
A helper function to create a new header and write it to disk. If the uuid isn’t given a random one will be generated. Use this in conjunction with Partition::write()