Source code for rawdisk.filesystems.volume

# -*- coding: utf-8 -*-


import abc


[docs]class Volume(object): """This is base class for all Volume objects supplied by filesystem plugins. """ __metaclass__ = abc.ABCMeta @abc.abstractmethod
[docs] def load(self, filename, offset): """Load volume information. Args: filename: Filename or device that it will read volume. information from. offset: Volume offset. """ return
@abc.abstractmethod
[docs] def dump_volume(self): """Print volume information to std output, similar to ntfsprogs_1.22 package"""