dfvfs.mount package

Submodules

dfvfs.mount.manager module

The path specification mount point manager.

The mount point manager allows to “mount” one path specification onto another. This allows dfVFS to expose complex path specifications in a way closer to the original system interpretation.

E.g. the path specification: type=OS, location=/home/myuser/myimages/image.qcow2 type=QCOW type=TSK_PARTITION, location=/p1 type=TSK, inode=128, location=/Users/MyUser/MyFile.txt

could be mounted as: type=MOUNT, identifier=C type=TSK, inode=128, location=/Users/MyUser/MyFile.txt

where the “C” mount point would be: type=OS, location=/home/myuser/myimages/image.qcow2 type=QCOW type=TSK_PARTITION, location=/p1

class dfvfs.mount.manager.MountPointManager[source]

Bases: object

Path specification mount point manager.

classmethod DeregisterMountPoint(mount_point)[source]

Deregisters a path specification mount point.

Parameters:

mount_point (str) – mount point identifier.

Raises:

KeyError – if the corresponding mount point is not set.

classmethod GetMountPoint(mount_point)[source]

Retrieves the path specification of a mount point.

Parameters:

mount_point (str) – mount point identifier.

Returns:

path specification of the mount point or None if the mount

point does not exists.

Return type:

PathSpec

classmethod RegisterMountPoint(mount_point, path_spec)[source]

Registers a path specification mount point.

Parameters:
  • mount_point (str) – mount point identifier.

  • path_spec (PathSpec) – path specification of the mount point.

Raises:

KeyError – if the corresponding mount point is already set.

Module contents