pub type VmdkFileReader = VmdkReader<Box<dyn ReadSeek + Send>>;Expand description
A VMDK reader opened from a file-system path, with an erased inner type.
Returned by VmdkReader::open_path; supports all formats including
multi-file flat extents that cannot be opened from a single stream.
Aliased Type§
pub struct VmdkFileReader { /* private fields */ }Implementations§
Source§impl VmdkFileReader
impl VmdkFileReader
Sourcepub fn extent_dependencies(path: &Path) -> Result<Vec<PathBuf>, VmdkError>
pub fn extent_dependencies(path: &Path) -> Result<Vec<PathBuf>, VmdkError>
List the companion extent files this VMDK depends on, resolved relative to the descriptor’s directory.
For a self-contained binary VMDK (monolithicSparse, streamOptimized, …)
this is empty — the single file holds everything. For multi-file formats
(twoGbMaxExtent*, monolithicFlat, vmfsSparse, seSparse, custom, …)
it returns every backing extent file in descriptor order. ZERO/NOACCESS
extents carry no file and are excluded.
Forensic use: enumerate what must be collected before the disk can be read, without opening (or even possessing) the extents themselves.
Sourcepub fn open_path(path: &Path) -> Result<Self, VmdkError>
pub fn open_path(path: &Path) -> Result<Self, VmdkError>
Open any VMDK format from a file-system path.
Unlike VmdkReader::open, this constructor handles text-descriptor
VMDKs (twoGbMaxExtentFlat) that reference external extent files, as
well as binary VMDKs that can be opened from a single stream.