liblp.reader

Functions

AdjustMetadataForSlot(metadata, slot_number)

GetBlockDevicePartitionName(block_device)

GetPartitionGroupName(group)

GetPartitionName(partition)

NameFromFixedArray(name)

ParseGeometry(buffer)

ParseMetadata(geometry, fd)

Read and validate metadata information from a block device that holds logical partitions.

ReadBackupGeometry(fd)

ReadBackupMetadata(fd, geometry, slot_number)

ReadLogicalPartitionGeometry(fd)

Read and validate geometry information from a block device that holds logical partitions.

ReadMetadata(super_partition, slot_number[, ...])

ReadMetadataHeader(fd)

ReadPrimaryGeometry(fd)

ReadPrimaryMetadata(fd, geometry, slot_number)

ValidateTableBounds(header, table)

liblp.reader.AdjustMetadataForSlot(metadata: LpMetadata, slot_number: int)
liblp.reader.GetBlockDevicePartitionName(block_device: LpMetadataBlockDevice) str
liblp.reader.GetPartitionGroupName(group: LpMetadataPartitionGroup) str
liblp.reader.GetPartitionName(partition: LpMetadataPartition) str
liblp.reader.NameFromFixedArray(name: bytes) str
liblp.reader.ParseGeometry(buffer: bytes)
liblp.reader.ParseMetadata(geometry: LpMetadataGeometry, fd: BufferedIOBase) LpMetadata

Read and validate metadata information from a block device that holds logical partitions. If the information is corrupted, this will attempt to read it from a secondary backup location.

liblp.reader.ReadBackupGeometry(fd: BufferedIOBase) LpMetadataGeometry
liblp.reader.ReadBackupMetadata(fd: BufferedIOBase, geometry: LpMetadataGeometry, slot_number: int)
liblp.reader.ReadLogicalPartitionGeometry(fd: BufferedIOBase) LpMetadataGeometry

Read and validate geometry information from a block device that holds logical partitions. If the information is corrupted, this will attempt to read it from a secondary backup location.

liblp.reader.ReadMetadata(super_partition: str, slot_number: int, opener: IPartitionOpener = None) LpMetadata
liblp.reader.ReadMetadataHeader(fd: BufferedIOBase) LpMetadataHeader
liblp.reader.ReadPrimaryGeometry(fd: BufferedIOBase) LpMetadataGeometry
liblp.reader.ReadPrimaryMetadata(fd: BufferedIOBase, geometry: LpMetadataGeometry, slot_number: int)
liblp.reader.ValidateTableBounds(header: LpMetadataHeader, table: LpMetadataTableDescriptor)