You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
489 B
Rust
24 lines
489 B
Rust
use crate::Context;
|
|
|
|
// LBA 0: MBR
|
|
// LBA 1: partition header
|
|
// LBA 2..33: partition table entries
|
|
// LBA 34..n: usable blocks
|
|
// LBA -33..-2: partition table entries (dup)
|
|
// LBA -1: partition header (dup)
|
|
|
|
struct Partition {
|
|
type_guid: [u8; 16],
|
|
part_guid: [u8; 16],
|
|
lba_start: u64,
|
|
lba_end: u64,
|
|
attr: u64,
|
|
name: String,
|
|
}
|
|
|
|
pub fn mkimg_bios_gpt(ctx: &Context) -> Result<(), eyre::Error> {
|
|
println!("dir={}", ctx.workspace.to_string_lossy());
|
|
|
|
Ok(())
|
|
}
|