pub struct VmdkInfo {
pub disk_type: String,
pub version: u32,
pub cid: u32,
pub parent_cid: u32,
pub grain_size_sectors: u64,
pub grain_size_bytes: u64,
pub virtual_disk_size: u64,
pub sector_count: u64,
pub compressed: bool,
pub descriptor_text: String,
pub disk_database: DiskDatabase,
}Expand description
Structured metadata for a VMDK virtual disk.
Returned by VmdkReader::info. All fields are Clone-able so callers
can store or serialise the snapshot independently of the reader.
Fields§
§disk_type: StringcreateType from the embedded descriptor (e.g. "monolithicSparse").
version: u32Header format version: 1 for monolithicSparse; 3 for streamOptimized; 0 for flat.
cid: u32Content ID (CID) from the descriptor, or 0xffff_ffff if absent.
parent_cid: u32Parent content ID; 0xffff_ffff means no parent (not a delta/snapshot).
grain_size_sectors: u64Grain size in sectors (0 for flat/raw extents).
grain_size_bytes: u64Grain size in bytes (0 for flat/raw extents).
virtual_disk_size: u64Total virtual disk size in bytes.
sector_count: u64Total virtual disk size in 512-byte sectors.
compressed: booltrue for streamOptimized VMDKs whose allocated grains are zlib-compressed.
descriptor_text: StringRaw embedded descriptor text; empty when no embedded descriptor is present.
disk_database: DiskDatabaseParsed ddb.* disk database (geometry, adapter type, versions, UUID, …).