rawdisk.plugins.filesystems.hfs_plus package

Submodules

rawdisk.plugins.filesystems.hfs_plus.hfs_plus module

class rawdisk.plugins.filesystems.hfs_plus.hfs_plus.HfsPlus[source]

Bases: rawdisk.plugins.categories.IFilesystemPlugin

Filesystem plugin for HFS+ partition.

detect(filename, offset, standalone=False)[source]

Always returns True, since there is only one partition with this type GUID, no need to do further verification.

get_volume_object()[source]

Returns HfsPlusVolume object.

gpt_identifiers

Should return a list (usually one) of GPT identifiers that are used to detect this volume

rawdisk.plugins.filesystems.hfs_plus.hfs_plus_volume module

class rawdisk.plugins.filesystems.hfs_plus.hfs_plus_volume.HfsPlusVolume[source]

Bases: rawdisk.filesystems.volume.Volume

Structure for HFS+ volume.

fd

fd – file descriptor used to read volume information

vol_header

VolumeHeader – Initialized VolumeHeader object

load(filename, offset)[source]

Loads HFS+ volume information

class rawdisk.plugins.filesystems.hfs_plus.hfs_plus_volume.VolumeHeader(data)[source]

Bases: rawdisk.util.rawstruct.RawStruct

Represents HFS+ volume header

signature

2 byte string – The volume signature, which must be kHFSPlusSigWord (‘H+’) for an HFS Plus volume.

version

ushort – The version of the volume format, which is currently 4 (kHFSPlusVersion) for HFS Plus volumes.

attributes

uint – HFS+ volume attributes

Module contents