:py:mod:`dissect.volume.lvm.c_lvm2` =================================== .. py:module:: dissect.volume.lvm.c_lvm2 Module Contents --------------- .. py:data:: lvm_def :value: Multiline-String .. raw:: html
Show Value .. code-block:: python """ struct label_header { char id[8]; uint64 sector; uint32 crc; uint32 offset; char type[8]; }; struct pv_header { char pv_uuid[32]; uint64 device_size; }; struct disk_locn { uint64 offset; /* Offset in bytes to start sector */ uint64 size; /* Bytes */ }; // Metadata area header struct mda_header { uint32 checksum; /* Checksum of rest of mda_header */ char magic[16]; /* To aid scans for metadata */ uint32 version; uint64 start; /* Absolute start byte of mda_header */ uint64 size; /* Size of metadata area */ }; struct raw_locn { uint64 offset; /* Offset in bytes to start sector */ uint64 size; /* Bytes */ uint32 checksum; uint32 flags; }; #define RAW_LOCN_IGNORED 0x00000001 """ .. raw:: html
.. py:data:: c_lvm .. py:data:: SECTOR_SIZE :value: 512 .. py:data:: LABEL_SCAN_SECTORS :value: 4 .. py:data:: STATUS_FLAG_ALLOCATABLE :value: 'ALLOCATABLE' .. py:data:: STATUS_FLAG_RESIZEABLE :value: 'RESIZEABLE' .. py:data:: STATUS_FLAG_READ :value: 'READ' .. py:data:: STATUS_FLAG_VISIBLE :value: 'VISIBLE' .. py:data:: STATUS_FLAG_WRITE :value: 'WRITE'