enigma2  2.6
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Components.Harddisk.HarddiskManager Class Reference

Public Member Functions

def __init__ (self)
 
def getAutofsMountpoint (self, device)
 
def is_hard_mounted (self, device)
 
def get_mountdevice (self, mountpoint)
 
def get_mountpoint (self, device)
 
def is_uuidpath_mounted (self, uuidpath, mountpoint)
 
def is_fstab_mountpoint (self, device, mountpoint)
 
def get_fstab_mountstate (self, device, mountpoint)
 
def get_fstab_mountpoint (self, device)
 
def modifyFstabEntry (self, partitionPath, mountpoint, mode="add_deactivated", extopts=[], fstype="auto")
 
def blockDeviceEvent (self, data)
 
def HDDCount (self)
 
def HDDList (self)
 
def HDDEnabledCount (self)
 
def getHDD (self, part)
 
def getCD (self)
 
def getBlkidPartitionType (self, device)
 
def isMount (self, mountdir)
 
def inside_mountpoint (self, filename)
 
def isUUIDpathFsTabMount (self, uuid, mountpath)
 
def isPartitionpathFsTabMount (self, uuid, mountpath)
 
def getPartitionVars (self, hdd, partitionNum=False)
 
def cleanupMountpath (self, devname)
 
def suggestDeviceMountpath (self, uuid)
 
def changeStorageDevice (self, uuid=None, action=None, mountData=None)
 
def isConfiguredStorageDevice (self, uuid)
 
def isDefaultStorageDeviceActivebyUUID (self, uuid)
 
def getDefaultStorageDevicebyUUID (self, uuid)
 
def getConfiguredStorageDevices (self)
 
def getMountedPartitions (self, onlyhotplug=False)
 
def splitDeviceName (self, devname)
 
def getUserfriendlyDeviceName (self, dev, phys)
 
def addMountedPartition (self, device, desc)
 
def removeMountedPartition (self, mountpoint)
 
def removeMountedPartitionbyDevice (self, device)
 
def getPartitionbyUUID (self, uuid)
 
def getPartitionbyDevice (self, dev)
 
def getPartitionbyMountpoint (self, mountpoint)
 
def getDeviceNamebyUUID (self, uuid)
 
def getPartitionUUID (self, part)
 
def getDeviceDescription (self, dev)
 
def reloadExports (self)
 
def unmountPartitionbyMountpoint (self, mountpoint, device=None)
 
def unmountPartitionbyUUID (self, uuid)
 
def mountPartitionbyUUID (self, uuid)
 
def storageDeviceChanged (self, uuid)
 
def setupConfigEntries (self, initial_call=False, dev=None)
 
def configureUuidAsDefault (self, uuid, device)
 
def isInitializedByEnigma2 (self, hdd)
 
def verifyInstalledStorageDevices (self)
 
def mountDreamboxData (self)
 

Public Attributes

 hdd
 
 cd
 
 partitions
 
 delayed_device_Notifier
 
 onUnMount_Notifier
 
 on_partition_list_change
 

Static Public Attributes

string EVENT_MOUNT = "mount"
 
string EVENT_UNMOUNT = "unmount"
 

Constructor & Destructor Documentation

◆ __init__()

def Components.Harddisk.HarddiskManager.__init__ (   self)

Member Function Documentation

◆ addMountedPartition()

def Components.Harddisk.HarddiskManager.addMountedPartition (   self,
  device,
  desc 
)

◆ blockDeviceEvent()

def Components.Harddisk.HarddiskManager.blockDeviceEvent (   self,
  data 
)

◆ changeStorageDevice()

def Components.Harddisk.HarddiskManager.changeStorageDevice (   self,
  uuid = None,
  action = None,
  mountData = None 
)

◆ cleanupMountpath()

def Components.Harddisk.HarddiskManager.cleanupMountpath (   self,
  devname 
)

◆ configureUuidAsDefault()

def Components.Harddisk.HarddiskManager.configureUuidAsDefault (   self,
  uuid,
  device 
)

◆ get_fstab_mountpoint()

def Components.Harddisk.HarddiskManager.get_fstab_mountpoint (   self,
  device 
)

◆ get_fstab_mountstate()

def Components.Harddisk.HarddiskManager.get_fstab_mountstate (   self,
  device,
  mountpoint 
)

◆ get_mountdevice()

def Components.Harddisk.HarddiskManager.get_mountdevice (   self,
  mountpoint 
)

◆ get_mountpoint()

def Components.Harddisk.HarddiskManager.get_mountpoint (   self,
  device 
)

◆ getAutofsMountpoint()

def Components.Harddisk.HarddiskManager.getAutofsMountpoint (   self,
  device 
)

◆ getBlkidPartitionType()

def Components.Harddisk.HarddiskManager.getBlkidPartitionType (   self,
  device 
)

◆ getCD()

def Components.Harddisk.HarddiskManager.getCD (   self)

◆ getConfiguredStorageDevices()

def Components.Harddisk.HarddiskManager.getConfiguredStorageDevices (   self)

◆ getDefaultStorageDevicebyUUID()

def Components.Harddisk.HarddiskManager.getDefaultStorageDevicebyUUID (   self,
  uuid 
)

◆ getDeviceDescription()

def Components.Harddisk.HarddiskManager.getDeviceDescription (   self,
  dev 
)

◆ getDeviceNamebyUUID()

def Components.Harddisk.HarddiskManager.getDeviceNamebyUUID (   self,
  uuid 
)

◆ getHDD()

def Components.Harddisk.HarddiskManager.getHDD (   self,
  part 
)

◆ getMountedPartitions()

def Components.Harddisk.HarddiskManager.getMountedPartitions (   self,
  onlyhotplug = False 
)

◆ getPartitionbyDevice()

def Components.Harddisk.HarddiskManager.getPartitionbyDevice (   self,
  dev 
)

◆ getPartitionbyMountpoint()

def Components.Harddisk.HarddiskManager.getPartitionbyMountpoint (   self,
  mountpoint 
)

◆ getPartitionbyUUID()

def Components.Harddisk.HarddiskManager.getPartitionbyUUID (   self,
  uuid 
)

◆ getPartitionUUID()

def Components.Harddisk.HarddiskManager.getPartitionUUID (   self,
  part 
)

◆ getPartitionVars()

def Components.Harddisk.HarddiskManager.getPartitionVars (   self,
  hdd,
  partitionNum = False 
)

◆ getUserfriendlyDeviceName()

def Components.Harddisk.HarddiskManager.getUserfriendlyDeviceName (   self,
  dev,
  phys 
)

◆ HDDCount()

def Components.Harddisk.HarddiskManager.HDDCount (   self)

◆ HDDEnabledCount()

def Components.Harddisk.HarddiskManager.HDDEnabledCount (   self)

◆ HDDList()

def Components.Harddisk.HarddiskManager.HDDList (   self)

◆ inside_mountpoint()

def Components.Harddisk.HarddiskManager.inside_mountpoint (   self,
  filename 
)

◆ is_fstab_mountpoint()

def Components.Harddisk.HarddiskManager.is_fstab_mountpoint (   self,
  device,
  mountpoint 
)

◆ is_hard_mounted()

def Components.Harddisk.HarddiskManager.is_hard_mounted (   self,
  device 
)

◆ is_uuidpath_mounted()

def Components.Harddisk.HarddiskManager.is_uuidpath_mounted (   self,
  uuidpath,
  mountpoint 
)

◆ isConfiguredStorageDevice()

def Components.Harddisk.HarddiskManager.isConfiguredStorageDevice (   self,
  uuid 
)

◆ isDefaultStorageDeviceActivebyUUID()

def Components.Harddisk.HarddiskManager.isDefaultStorageDeviceActivebyUUID (   self,
  uuid 
)

◆ isInitializedByEnigma2()

def Components.Harddisk.HarddiskManager.isInitializedByEnigma2 (   self,
  hdd 
)

◆ isMount()

def Components.Harddisk.HarddiskManager.isMount (   self,
  mountdir 
)

◆ isPartitionpathFsTabMount()

def Components.Harddisk.HarddiskManager.isPartitionpathFsTabMount (   self,
  uuid,
  mountpath 
)

◆ isUUIDpathFsTabMount()

def Components.Harddisk.HarddiskManager.isUUIDpathFsTabMount (   self,
  uuid,
  mountpath 
)

◆ modifyFstabEntry()

def Components.Harddisk.HarddiskManager.modifyFstabEntry (   self,
  partitionPath,
  mountpoint,
  mode = "add_deactivated",
  extopts = [],
  fstype = "auto" 
)

◆ mountDreamboxData()

def Components.Harddisk.HarddiskManager.mountDreamboxData (   self)

◆ mountPartitionbyUUID()

def Components.Harddisk.HarddiskManager.mountPartitionbyUUID (   self,
  uuid 
)

◆ reloadExports()

def Components.Harddisk.HarddiskManager.reloadExports (   self)

◆ removeMountedPartition()

def Components.Harddisk.HarddiskManager.removeMountedPartition (   self,
  mountpoint 
)

◆ removeMountedPartitionbyDevice()

def Components.Harddisk.HarddiskManager.removeMountedPartitionbyDevice (   self,
  device 
)

◆ setupConfigEntries()

def Components.Harddisk.HarddiskManager.setupConfigEntries (   self,
  initial_call = False,
  dev = None 
)

◆ splitDeviceName()

def Components.Harddisk.HarddiskManager.splitDeviceName (   self,
  devname 
)

◆ storageDeviceChanged()

def Components.Harddisk.HarddiskManager.storageDeviceChanged (   self,
  uuid 
)

◆ suggestDeviceMountpath()

def Components.Harddisk.HarddiskManager.suggestDeviceMountpath (   self,
  uuid 
)

◆ unmountPartitionbyMountpoint()

def Components.Harddisk.HarddiskManager.unmountPartitionbyMountpoint (   self,
  mountpoint,
  device = None 
)

◆ unmountPartitionbyUUID()

def Components.Harddisk.HarddiskManager.unmountPartitionbyUUID (   self,
  uuid 
)

◆ verifyInstalledStorageDevices()

def Components.Harddisk.HarddiskManager.verifyInstalledStorageDevices (   self)

Member Data Documentation

◆ cd

Components.Harddisk.HarddiskManager.cd

◆ delayed_device_Notifier

Components.Harddisk.HarddiskManager.delayed_device_Notifier

◆ EVENT_MOUNT

string Components.Harddisk.HarddiskManager.EVENT_MOUNT = "mount"
static

◆ EVENT_UNMOUNT

string Components.Harddisk.HarddiskManager.EVENT_UNMOUNT = "unmount"
static

◆ hdd

Components.Harddisk.HarddiskManager.hdd

◆ on_partition_list_change

Components.Harddisk.HarddiskManager.on_partition_list_change

◆ onUnMount_Notifier

Components.Harddisk.HarddiskManager.onUnMount_Notifier

◆ partitions

Components.Harddisk.HarddiskManager.partitions

The documentation for this class was generated from the following file: