rawdisk.filesystems package¶
Submodules¶
rawdisk.filesystems.detector module¶
This module is mostly used by plugins to register filesystem detection routines that are internaly used by rawdisk.reader.Reader to match filesystems
-
class
rawdisk.filesystems.detector.FilesystemDetector(fs_plugins=None)[source]¶ Bases:
objectA class that allows to match filesystem id or guid against available plugins.
-
all_plugins¶
-
detect_gpt(filename, offset, fs_guid)[source]¶ Used by rawdisk.session.Session to match gpt partitions agains filesystem plugins.
Parameters: - filename – device or file that it will read in order to detect the
- filesystem –
- fs_id – filesystem guid to match
- {EBD0A0A2-B9E5-4433-87C0-68B6B72699C7}) ((ex.) –
- offset – offset for the filesystem that is being matched
Returns: Volume object supplied by matched plugin. If there is no match, None is returned
-
detect_mbr(filename, offset, fs_id)[source]¶ Used by rawdisk.session.Session to match mbr partitions against filesystem plugins.
Parameters: - filename – device or file that it will read in order to detect
- filesystem fs_id (the) – filesystem id to match (ex. 0x07)
- offset – offset for the filesystem that is being matched
Returns: Volume object supplied by matched plugin. If there is no match, None is returned
-