dissect.hypervisor.util.vmtar

Module Contents

Classes

VisorTarInfo

Implements TarInfo for use with Visor Tar files (vmtar).

VisorTarFile

The TarFile Class provides an interface to tar archives.

Attributes

class dissect.hypervisor.util.vmtar.VisorTarInfo(name='')

Bases: tarfile.TarInfo

Implements TarInfo for use with Visor Tar files (vmtar).

The main difference is that file data is located at the end of the tar file, on an offset specified in the header.

is_visor: bool
offset_data: int | None
textPgs: int | None
fixUpPgs: int | None
classmethod frombuf(buf: bytes, encoding: str, errors: str) VisorTarInfo

Construct a TarInfo object from a 512 byte bytes object.

class dissect.hypervisor.util.vmtar.VisorTarFile(*args, **kwargs)

Bases: tarfile.TarFile

The TarFile Class provides an interface to tar archives.

classmethod visoropen(name: str, mode: str = 'r', fileobj: BinaryIO | None = None, **kwargs) VisorTarFile

Open a visor tar file for reading. Supports gzip and lzma compression.

OPEN_METH: Final[dict[str, str]]
dissect.hypervisor.util.vmtar.open
dissect.hypervisor.util.vmtar.is_tarfile