def Open(self, path_spec): """Opens a volume defined by path specification. Args: path_spec (PathSpec): a path specification. Raises: VolumeSystemError: if the APFS virtual file system could not be resolved. """ self._file_system = resolver.Resolver.OpenFileSystem(path_spec) if self._file_system is None: raise errors.VolumeSystemError('Unable to resolve path specification.') type_indicator = self._file_system.type_indicator if type_indicator != definitions.TYPE_INDICATOR_APFS_CONTAINER: raise errors.VolumeSystemError('Unsupported type indicator.')
def Open(self, path_spec): """Opens a volume object defined by path specification. Args: path_spec: the path specification (instance of PathSpec). Raises: VolumeSystemError: if the LVM virtual file system could not be resolved. """ self._file_system = resolver.Resolver.OpenFileSystem(path_spec) if self._file_system is None: raise errors.VolumeSystemError( u'Unable to resolve file system from path specification.') type_indicator = self._file_system.type_indicator if type_indicator != definitions.TYPE_INDICATOR_LVM: raise errors.VolumeSystemError(u'Unsupported file system type.')
def Open(self, path_spec): """Opens a volume defined by path specification. Args: path_spec (PathSpec): a path specification. Raises: VolumeSystemError: if the TSK partition virtual file system could not be resolved. """ self._file_system = resolver.Resolver.OpenFileSystem(path_spec) if self._file_system is None: raise errors.VolumeSystemError( 'Unable to resolve file system from path specification.') type_indicator = self._file_system.type_indicator if type_indicator != definitions.TYPE_INDICATOR_TSK_PARTITION: raise errors.VolumeSystemError('Unsupported file system type.')