A pure-Rust library to work with GPT partition tables.
gpt
provides support for manipulating (R/W) GPT headers and partition
tables. It supports raw disk devices as well as disk images.
```rust extern crate gpt; use gpt::header::{Header, readheader}; use gpt::partition::{Partition, readpartitions};
fn inspect_disk() { let filename = "/dev/sda";
let h = read_header(filename).unwrap();
println!("Disk header: {:#?}", h);
let p = read_partitions(filename, &h).unwrap();
println!("Partition layout: {:#?}", p);
} ```