dissect.volume.md.md
¶
Module Contents¶
Classes¶
Read an MD RAID set of one or multiple devices/file-like objects. |
|
Parse metadata from an MD device. |
Functions¶
Find the super block of an MD device. |
Attributes¶
- dissect.volume.md.md.MDPhysicalDiskDescriptor¶
- class dissect.volume.md.md.MD(fh: list[MDPhysicalDiskDescriptor] | MDPhysicalDiskDescriptor)¶
Bases:
dissect.volume.raid.raid.RAID
Read an MD RAID set of one or multiple devices/file-like objects.
Use this class to read from a RAID set.
- Parameters:
fh – A single file-like object or
MDPhysicalDisk
, or a list of multiple belonging to the same RAID set.
- class dissect.volume.md.md.MDConfiguration(physical_disks: list[MDPhysicalDisk])¶
- class dissect.volume.md.md.MDVirtualDisk(physical_disks: list[MDPhysicalDisk])¶
- class dissect.volume.md.md.MDPhysicalDisk(fh: BinaryIO)¶
Bases:
dissect.volume.raid.raid.PhysicalDisk
Parse metadata from an MD device.
Supports 0.90 and 1.x metadata.
- Parameters:
fh – The file-like object to read metadata from.
- creation_time¶
- update_time¶
- level¶
- layout¶
- raid_disks¶
- sectors¶
- dissect.volume.md.md.find_super_block(fh: BinaryIO) tuple[int | None, int | None, int | None] ¶
Find the super block of an MD device.
- Parameters:
fh – The file-like object to search for the super block.
- Returns:
A tuple containing the sector, major version, and minor version of the super block, or a tuple of
None
if no super block was found.