Function disk::gpt::write_protective_mbr
source · pub fn write_protective_mbr(
file: &mut impl Write,
disk_size: u64
) -> Result<(), Error>
Expand description
Write a protective MBR for a disk of the given total size (in bytes).
This should be written at the start of the disk, before the GPT header. It is one SECTOR_SIZE
long.