dissect.volume.dm.thin
#
Module Contents#
Classes#
Interact with a device-mapper thin-provision pool. |
|
Interact with a device-mapper thin-provision metadata device. |
|
Implements a readable thin device/volume. |
- class dissect.volume.dm.thin.ThinPool(metadata_fh: BinaryIO, data_fh: BinaryIO)#
Interact with a device-mapper thin-provision pool.
- open(device_id: int, size_hint: int | None = None) ThinDevice #
Open a thin device on this pool.
No size information is stored in the pool, so it’s recommended to provide a size hint.
- Parameters:
device_id – The device ID to open.
size_hint – Optional size hint for the device to open.
- class dissect.volume.dm.thin.Metadata(fh: BinaryIO)#
Interact with a device-mapper thin-provision metadata device.
- class dissect.volume.dm.thin.ThinDevice(pool: ThinPool, device_id: int, size_hint: int | None = None)#
Bases:
dissect.util.stream.AlignedStream
Implements a readable thin device/volume.
- Parameters:
pool – The pool the device belongs to.
device_id – The device ID of the device.
size_hint – Optional device size hint.