Module ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad Str NameLoad NameLoad NameLoad kwarg body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Str orelse If Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Str orelse If Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Str orelse Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword BinOpAdd Str AttributeLoad AttributeLoad NameLoad attr attr orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr keyword Str Index Num If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body If BoolOpOr BoolOpAnd CompareEq NameLoad Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If AttributeLoad NameLoad attr body Expr Call NameLoad Str orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call NameLoad Str orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call NameLoad Str Expr Call NameLoad Str orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call NameLoad Str orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call NameLoad Str Expr Call NameLoad Str orelse Assign NameStore ListLoad AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr ListLoad Str AttributeLoad NameLoad attr Str Str keyword AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad If CompareEq AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr Str Return CompareIsNot NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr ListLoad Str Str IfExp CompareEq AttributeLoad NameLoad attr Str Str Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad NameLoad Index Num attr ListLoad Str AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr ListLoad ListLoad Str Str Str ListLoad Str orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr ListLoad ListLoad Str Str Str ListLoad Str orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Return NameLoad orelse Raise Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr For NameStore SubscriptLoad NameLoad Slice body If BoolOpAnd AttributeLoad NameLoad attr CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Expr Call AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Num keyword NameLoad Continue orelse Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad If CompareEq AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Return CompareIsNot NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Return SubscriptLoad AttributeLoad NameLoad attr Index Num orelse If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str Assign NameStore TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr orelse Assign NameStore TupleLoad AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body For NameStore ListLoad Str Str Str Str Str Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad Return SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str Return NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr body If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Str SubscriptLoad NameLoad Slice BinOpAdd Call AttributeLoad NameLoad attr Str Num Break orelse Return NameLoad handlers ExceptHandler type NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Return NameLoad TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad Str Str attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Return NameLoad Assign NameStore ListLoad Str Str Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Return NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Yield NameLoad orelse If NameLoad body For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Yield NameLoad orelse Assign NameStore Num For NameStore Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Num Expr Yield NameLoad If BoolOpAnd CompareIs NameLoad NameLoad CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad Str Str Call AttributeLoad NameLoad attr attr If NameLoad body Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num attr Index Num Assign AttributeStore NameLoad attr Str For NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad Str Str Call AttributeLoad NameLoad attr attr If NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad SubscriptLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num attr Str Num Index Num attr If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad Index Num orelse Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body For NameStore Call AttributeLoad NameLoad attr keyword NameLoad body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str For NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults BoolOpOr AttributeLoad NameLoad attr Str keyword NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr ListLoad Str Str AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr keyword NameLoad If AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr ListLoad Str Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr keyword NameLoad If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr ListLoad Str Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Return NameLoad If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr ListLoad Str Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Return NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A __future__ print_function __future__ unicode_literals collections defaultdict N/A glob N/A logging N/A os N/A re N/A subprocess N/A tempfile N/A time imagemounter _util BLOCK_SIZE imagemounter.volume_system VolumeSystem N/A logger N/A N/A logging getLogger __name__ Disk N/A object N/A N/A Representation of a disk, image file or anything else that can be considered a disk.  __init__ N/A N/A self parser path offset read_write method multifile index mount_directories N/A 0 False auto True None True args N/A N/A Instantiation of this class does not automatically mount, detect or analyse the disk. You will need the
        :func:`init` method for this.

        Only use arguments offset and further as keyword arguments.

        :param parser: the parent parser
        :type parser: :class:`ImageParser`
        :param int offset: offset of the disk where the volume (system) resides
        :param bool read_write: indicates whether the disk should be mounted with a read-write cache enabled
        :param str method: the method to mount the base image with
        :param bool multifile: indicates whether :func:`mount` should attempt to call the underlying mount method with
                all files of a split file when passing a single file does not work
        :param str index: the base index of this Disk
        :param bool mount_directories: indicates whether directories should also be 'mounted'
        :param args: arguments that should be passed down to :class:`Volume` objects
         N/A N/A self parser parser N/A path N/A N/A N/A os path expandvars N/A N/A N/A os path expanduser path N/A N/A N/A _util is_encase path N/A N/A N/A self type encase N/A N/A N/A N/A _util is_vmware path N/A N/A N/A self type vmdk N/A N/A N/A N/A _util is_compressed path N/A N/A N/A self type compressed N/A N/A N/A self type dd N/A N/A self paths N/A sorted N/A N/A _util expand_path path N/A N/A self offset offset N/A N/A self block_size BLOCK_SIZE N/A N/A self read_write read_write N/A N/A self method method N/A N/A self read_write read_write N/A N/A self rwpath N/A N/A self multifile multifile N/A N/A self index index N/A N/A self mount_directories mount_directories N/A N/A self args args N/A N/A self name N/A N/A N/A N/A os path split path N/A 1 N/A N/A self mountpoint N/A N/A self avfs_mountpoint N/A N/A self volumes N/A VolumeSystem parent self args N/A N/A self volume_source N/A N/A self offset 0 N/A N/A self _disktype N/A defaultdict dict N/A N/A self loopback N/A N/A self md_device N/A __unicode__ N/A N/A self N/A N/A N/A N/A self name N/A __str__ N/A N/A self N/A N/A N/A N/A N/A self __unicode__ N/A __getitem__ N/A N/A self item N/A N/A N/A N/A N/A self volumes N/A item N/A init N/A N/A self single raid disktype N/A None True True N/A N/A Calls several methods required to perform a full initialisation: :func:`mount`, :func:`add_to_raid` and
        :func:`mount_volumes` and yields all detected volumes.

        :param bool|None single: indicates whether the disk should be mounted as a single disk, not as a single disk or
            whether it should try both (defaults to :const:`None`)
        :param bool raid: indicates whether RAID detection is enabled
        :param bool disktype: indicates whether disktype data should be loaded and used
        :rtype: generator
         N/A N/A N/A self mount N/A raid N/A N/A N/A N/A self add_to_raid N/A disktype N/A N/A N/A N/A N/A self volumes load_disktype_data N/A v N/A N/A self mount_volumes single N/A N/A N/A v N/A mount N/A N/A self N/A N/A N/A Mounts the base image on a temporary location using the mount method stored in :attr:`method`. If mounting
        was successful, :attr:`mountpoint` is set to the temporary mountpoint.

        If :attr:`read_write` is enabled, a temporary read-write cache is also created and stored in :attr:`rwpath`.

        :return: whether the mounting was successful
        :rtype: bool
         N/A N/A N/A self parser casename N/A N/A N/A self mountpoint N/A N/A tempfile mkdtemp prefix image_mounter_ suffix N/A _ N/A N/A self parser casename N/A N/A N/A self mountpoint N/A N/A tempfile mkdtemp prefix image_mounter_ N/A N/A self read_write N/A N/A N/A self rwpath N/A N/A N/A tempfile mkstemp prefix image_mounter_rw_cache_ N/A 1 N/A N/A N/A self method auto N/A N/A methods N/A add_method_if_exists N/A N/A method N/A N/A N/A N/A N/A N/A method avfs N/A N/A _util command_exists avfsd N/A N/A _util command_exists method N/A N/A N/A N/A methods append method N/A N/A N/A self read_write N/A N/A N/A add_method_if_exists xmount N/A N/A N/A N/A self type encase N/A N/A N/A add_method_if_exists ewfmount N/A N/A N/A N/A self type vmdk N/A N/A N/A add_method_if_exists vmware-mount N/A N/A add_method_if_exists affuse N/A N/A N/A N/A self type dd N/A N/A N/A add_method_if_exists affuse N/A N/A N/A N/A self type compressed N/A N/A N/A add_method_if_exists avfs N/A N/A add_method_if_exists xmount N/A N/A methods N/A N/A self method N/A cmds N/A N/A method methods N/A N/A N/A method avfs N/A N/A N/A self avfs_mountpoint N/A N/A tempfile mkdtemp prefix image_mounter_avfs_ N/A N/A N/A _util check_call_ N/A avfsd N/A self avfs_mountpoint -o allow_other stdout N/A subprocess PIPE N/A avfspath N/A N/A N/A N/A self avfs_mountpoint / N/A N/A N/A os path abspath N/A N/A self paths N/A 0 # N/A targetraw N/A N/A N/A os path join N/A self mountpoint avfs N/A N/A N/A os symlink avfspath targetraw N/A N/A N/A logger debug N/A N/A Symlinked {} with {} format avfspath targetraw N/A raw_path N/A N/A self get_raw_path N/A N/A N/A logger debug N/A N/A Raw path to avfs is {} format raw_path N/A N/A N/A self method auto N/A N/A N/A self method avfs N/A N/A raw_path None N/A N/A N/A method xmount N/A N/A N/A N/A cmds append N/A xmount --in N/A N/A N/A self type encase ewf dd N/A N/A self read_write N/A N/A N/A N/A N/A cmds N/A -1 extend N/A --rw N/A self rwpath N/A N/A N/A method affuse N/A N/A N/A N/A cmds extend N/A N/A affuse -o allow_other N/A affuse N/A N/A N/A method ewfmount N/A N/A N/A N/A cmds extend N/A N/A ewfmount -X allow_other N/A ewfmount N/A N/A N/A method vmware-mount N/A N/A N/A N/A cmds append N/A vmware-mount -r -f N/A N/A N/A method dummy N/A N/A N/A N/A os rmdir N/A self mountpoint N/A N/A self mountpoint N/A N/A N/A logger debug N/A N/A Raw path to dummy is {} format N/A N/A self get_raw_path N/A True N/A N/A N/A Exception N/A N/A Unknown mount method {0} format N/A self method N/A cmd N/A cmds N/A N/A N/A N/A N/A self multifile N/A N/A len N/A self paths 1 N/A N/A N/A N/A cmds append N/A cmd N/A N/A N/A N/A N/A cmds N/A -1 extend N/A self paths N/A N/A N/A N/A cmds N/A -1 append N/A self mountpoint N/A N/A N/A cmd append N/A N/A self paths N/A 0 N/A N/A N/A cmd append N/A self mountpoint N/A cmd cmds N/A N/A N/A N/A N/A N/A _util check_call_ cmd stdout N/A subprocess PIPE N/A N/A N/A time sleep 0.1 N/A N/A N/A Exception N/A N/A N/A N/A logger warning N/A N/A Could not mount {0}, trying other method format N/A N/A self paths N/A 0 exc_info True N/A N/A N/A raw_path N/A N/A self get_raw_path N/A N/A N/A logger debug N/A N/A Raw path to disk is {} format raw_path N/A N/A N/A self method auto N/A N/A N/A self method N/A cmd N/A 0 N/A N/A raw_path None N/A N/A N/A logger error N/A N/A Unable to mount {0} format N/A N/A self paths N/A 0 N/A N/A N/A os rmdir N/A self mountpoint N/A N/A self mountpoint N/A False N/A get_raw_path N/A N/A self N/A N/A N/A Returns the raw path to the mounted disk image, i.e. the raw :file:`.dd`, :file:`.raw` or :file:`ewf1`
        file.

        :rtype: str
         N/A N/A N/A self method dummy N/A N/A N/A N/A self paths N/A 0 N/A N/A N/A N/A N/A self method avfs N/A N/A N/A os path isdir N/A N/A N/A os path join N/A self mountpoint avfs N/A N/A N/A N/A logger debug AVFS mounted as a directory, will look in directory for (random) file. N/A searchdirs N/A N/A N/A N/A os path join N/A self mountpoint avfs N/A self mountpoint N/A N/A searchdirs N/A N/A self mountpoint N/A raw_path N/A N/A searchdir searchdirs N/A N/A pattern N/A *.dd *.iso *.raw *.dmg ewf1 flat avfs N/A N/A N/A N/A raw_path extend N/A N/A glob glob N/A N/A N/A os path join searchdir pattern N/A N/A raw_path N/A N/A N/A N/A logger warning N/A N/A No viable mount file found in {}. format searchdirs N/A None N/A N/A raw_path N/A 0 N/A get_fs_path N/A N/A self N/A N/A N/A Returns the path to the filesystem. Most of the times this is the image file, but may instead also return
        the MD device or loopback device the filesystem is mounted to.

        :rtype: str
         N/A N/A self md_device N/A N/A N/A self md_device N/A N/A N/A self loopback N/A N/A N/A self loopback N/A N/A N/A N/A self get_raw_path N/A is_raid N/A N/A self N/A N/A N/A Tests whether this image (was) part of a RAID array. Requires :command:`mdadm` to be installed. N/A N/A N/A N/A _util command_exists mdadm N/A N/A N/A N/A logger info mdadm not installed, could not detect RAID N/A False N/A N/A N/A result N/A N/A _util check_output_ N/A mdadm --examine N/A N/A self get_raw_path stderr N/A subprocess STDOUT N/A l N/A N/A result splitlines N/A N/A N/A Raid Level l N/A N/A N/A N/A logger debug N/A Detected RAID level  N/A l N/A N/A N/A N/A l index : 2 N/A N/A N/A False N/A N/A N/A Exception N/A N/A False N/A True N/A add_to_raid N/A N/A self N/A N/A N/A Adds the disk to a central RAID volume.

        This function will first test whether it is actually a RAID volume by using :func:`is_raid` and, if so, will
        add the disk to the array via a loopback device.

        :return: whether the addition succeeded
         N/A N/A N/A N/A self is_raid N/A N/A False N/A N/A N/A N/A self loopback N/A N/A N/A N/A _util check_output_ N/A losetup -f strip N/A N/A N/A Exception N/A N/A N/A N/A logger warning No free loopback device found for RAID exc_info True N/A False N/A cmd N/A losetup -o N/A str N/A self offset N/A self loopback N/A N/A self get_raw_path N/A N/A N/A self read_write N/A N/A N/A N/A cmd insert 1 -r N/A N/A N/A N/A N/A _util check_call_ cmd stdout N/A subprocess PIPE N/A N/A N/A Exception N/A N/A N/A N/A logger exception Failed mounting image to loopback N/A False N/A N/A N/A output N/A N/A _util check_output_ N/A mdadm -IR N/A self loopback stderr N/A subprocess STDOUT N/A match N/A N/A re findall attached to ([^ ,]+) output N/A match N/A N/A N/A self md_device N/A N/A N/A os path realpath N/A match N/A 0 N/A N/A N/A logger info N/A N/A Mounted RAID to {0} format N/A self md_device N/A N/A N/A Exception N/A e N/A N/A N/A N/A logger exception Failed mounting RAID. N/A False N/A True N/A mount_volumes N/A N/A self single only_mount N/A None None N/A N/A Generator that detects and mounts all volumes in the disk.

        If *single* is :const:`True`, this method will call :Func:`mount_single_volumes`. If *single* is False, only
        :func:`mount_multiple_volumes` is called. If *single* is None, :func:`mount_multiple_volumes` is always called,
        being followed by :func:`mount_single_volume` if no volumes were detected.
         N/A N/A N/A N/A N/A os path isdir N/A N/A self get_raw_path N/A self mount_directories N/A N/A N/A N/A logger info Raw path is a directory: using directory mount method N/A v N/A N/A self mount_directory only_mount N/A N/A N/A v N/A N/A single N/A N/A v N/A N/A self mount_single_volume only_mount N/A N/A N/A v N/A N/A amount 0 N/A v N/A N/A self mount_multiple_volumes only_mount N/A N/A amount 1 N/A N/A v N/A N/A N/A single None N/A amount 0 N/A N/A N/A N/A logger info Mounting as single volume instead N/A v N/A N/A self mount_single_volume only_mount N/A N/A N/A v N/A mount_directory N/A N/A self only_mount N/A None N/A N/A Method that 'mounts' a directory. It actually just symlinks it. It is useful for AVFS mounts, that
        are not otherwise detected. This is a last resort method.
         N/A N/A N/A self mount_directories N/A N/A N/A volume N/A N/A N/A self volumes _make_single_subvolume N/A N/A volume offset 0 N/A N/A volume flag alloc N/A N/A volume fsdescription Directory N/A filesize N/A N/A N/A N/A _util check_output_ N/A du -scDb N/A N/A self get_fs_path strip N/A filesize N/A N/A N/A volume size N/A int N/A N/A N/A N/A N/A N/A filesize splitlines N/A -1 split N/A 0 N/A N/A self volume_source directory N/A v N/A N/A volume init no_stats True only_mount only_mount N/A N/A N/A v N/A mount_single_volume N/A N/A self only_mount N/A None N/A N/A Mounts a volume assuming that the mounted image does not contain a full disk image, but only a
        single volume.

        A new :class:`Volume` object is created based on the disk file and :func:`init` is called on this object.

        This function will typically yield one volume, although if the volume contains other volumes, multiple volumes
        may be returned.
         N/A volume N/A N/A N/A self volumes _make_single_subvolume N/A N/A volume offset 0 N/A description N/A N/A N/A N/A _util check_output_ N/A file -sL N/A N/A self get_fs_path strip N/A description N/A N/A N/A volume fsdescription N/A N/A N/A N/A N/A N/A N/A N/A description split :  1 N/A 1 split , 1 N/A 0 strip N/A N/A size description N/A N/A N/A volume size N/A int N/A N/A N/A re findall size:? (\d+) description N/A 0 N/A N/A N/A volume size N/A N/A N/A os path getsize N/A N/A self get_fs_path N/A N/A volume flag alloc N/A N/A self volume_source single N/A N/A N/A N/A self volumes _assign_disktype_data volume N/A v N/A N/A volume init no_stats True only_mount only_mount N/A N/A N/A v N/A mount_multiple_volumes N/A N/A self only_mount N/A None N/A N/A Generator that will detect volumes in the disk file, generate :class:`Volume` objects based on this
        information and call :func:`init` on these.
         N/A v N/A N/A N/A self volumes detect_volumes N/A N/A w N/A N/A v init only_mount only_mount N/A N/A N/A w N/A get_volumes N/A N/A self N/A N/A N/A Gets a list of all volumes in this disk, including volumes that are contained in other volumes. N/A volumes N/A N/A v N/A self volumes N/A N/A N/A N/A volumes extend N/A N/A v get_volumes N/A volumes N/A rw_active N/A N/A self N/A N/A N/A Indicates whether anything has been written to a read-write cache. N/A N/A N/A self rwpath N/A N/A N/A os path getsize N/A self rwpath N/A unmount N/A N/A self remove_rw N/A False N/A N/A Removes all ties of this disk to the filesystem, so the image can be unmounted successfully. Warning: this
        method will destruct the entire RAID array in which this disk takes part.
         N/A m N/A list N/A sorted N/A self volumes key N/A N/A N/A v N/A N/A N/A v mountpoint reverse True N/A N/A N/A N/A N/A m unmount N/A N/A N/A N/A logger warning N/A N/A Error unmounting volume {0} format N/A m mountpoint N/A N/A self md_device N/A N/A N/A N/A N/A N/A _util check_call_ N/A mdadm -S N/A self md_device stdout N/A subprocess PIPE stderr N/A subprocess PIPE N/A N/A self md_device None N/A N/A N/A Exception N/A e N/A N/A N/A N/A logger warning N/A N/A Failed unmounting MD device {0} format N/A self md_device exc_info True N/A N/A self loopback N/A N/A N/A N/A N/A N/A _util check_call_ N/A losetup -d N/A self loopback N/A N/A self loopback None N/A N/A N/A Exception N/A N/A N/A N/A logger warning N/A N/A Failed deleting loopback device {0} format N/A self loopback exc_info True N/A N/A N/A self mountpoint N/A N/A N/A _util clean_unmount N/A fusermount -u N/A self mountpoint N/A N/A N/A N/A logger error N/A N/A Error unmounting base {0} format N/A self mountpoint N/A False N/A N/A N/A self avfs_mountpoint N/A N/A N/A _util clean_unmount N/A fusermount -u N/A self avfs_mountpoint N/A N/A N/A N/A logger error N/A N/A Error unmounting AVFS mountpoint {0} format N/A self avfs_mountpoint N/A False N/A N/A N/A N/A self rw_active remove_rw N/A N/A N/A N/A os remove N/A self rwpath N/A True N/A N/A