dissect.target.volumes.lvm
¶
Module Contents¶
Classes¶
An extension of the |
Attributes¶
- dissect.target.volumes.lvm.log¶
- dissect.target.volumes.lvm.OPEN_TYPES = ('linear', 'striped', 'mirror', 'thin')¶
- dissect.target.volumes.lvm.KNOWN_SKIP_TYPES = ('snapshot', 'thin-pool')¶
- class dissect.target.volumes.lvm.LvmVolumeSystem(fh: BinaryIO | list[BinaryIO], *args, **kwargs)¶
Bases:
dissect.target.volume.LogicalVolumeSystem
An extension of the
VolumeSystem
class that provides additional functionality for dealing with logical volume systems.- __type__ = 'lvm'¶
A short string identifying the type of volume system.
- lvm¶
- classmethod open_all(volumes: list[BinaryIO]) Iterator[dissect.target.volume.LogicalVolumeSystem] ¶
Open all the discovered logical volume systems from the given file-like objects.
There can be more than one logical volume system on a given set of file-like objects. For example, you can have five disks or volumes with two separate LVM2 volume groups. This function is responsible for grouping the correct disks and volumes with each other, and correctly opening each distinct logical volume system.
- Parameters:
volumes – A list of file-like objects to discover and open the logical volume systems on.
- Returns:
An iterator of
LogicalVolumeSystem
.