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.
- metadata_fh¶
- data_fh¶
- metadata¶
- 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.
- fh¶
- sb¶
- data_block_size¶
- metadata_block_size¶
- data_mapping¶
- device_details¶
- 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.
- pool¶
- device_id¶
- block_size¶
- details¶