pub fn read_disk(diskpath: impl AsRef<Path>) -> Result<GptDisk<'static>>
Expand description
Open and read a GPT disk, using default configuration options.
§Example
let gpt_disk = gpt::disk::read_disk("/dev/sdz").unwrap();
println!("{:#?}", gpt_disk);