Struct gpt::GptConfig [−][src]
pub struct GptConfig { /* fields omitted */ }Expand description
Configuration options to open a GPT disk.
Implementations
Whether to open a GPT partition table in writable mode.
Whether to assume an initialized GPT disk and read its partition table on open.
Size of logical blocks (sectors) for this disk.
Open the GPT disk at the given path and inspect it according to configuration options.
Open the GPT disk from the given DiskDeviceObject and inspect it according to configuration options.
pub fn create_from_device(
self,
device: DiskDeviceObject<'_>,
guid: Option<Uuid>
) -> Result<GptDisk<'_>>
pub fn create_from_device(
self,
device: DiskDeviceObject<'_>,
guid: Option<Uuid>
) -> Result<GptDisk<'_>>
Create a GPTDisk with default headers and an empty partition table. If guid is None then it will generate a new random guid.