Package pyanaconda :: Package storage :: Module devices :: Class DMDevice
[hide private]
[frames] | no frames]

Class DMDevice

source code

object --+        
         |        
    Device --+    
             |    
 StorageDevice --+
                 |
                DMDevice

A device-mapper device

Instance Methods [hide private]
 
__init__(self, name, format=None, size=None, dmUuid=None, target=None, exists=None, parents=None, sysfsPath='')
Create a DMDevice instance.
source code
 
__repr__(self)
repr(x)
source code
 
dict(self) source code
 
fstabSpec(self)
Return the device specifier for use in /etc/fstab.
source code
 
mapName(self)
This device's device-mapper map name
source code
 
status(self)
This device's status.
source code
 
updateSysfsPath(self)
Update this device's sysfs path.
source code
 
getDMNode(self)
Return the dm-X (eg: dm-0) device node for this device.
source code
 
setupPartitions(self) source code
 
teardownPartitions(self) source code
 
_setName(self, name)
Set the device's map name.
source code
 
slave(self)
This device's backing device.
source code

Inherited from StorageDevice: __str__, checkSize, create, currentSize, destroy, disks, encrypted, formatArgs, growable, isDisk, maxSize, minSize, model, notifyKernel, packages, partedDevice, partitionable, partitioned, path, preCommitFixup, removable, resizable, resize, serial, services, setup, setupParents, teardown, vendor

Inherited from Device: __deepcopy__, addChild, dependsOn, dracutSetupArgs, isleaf, mediaPresent, removeChild, teardownParents, type, typeDescription, writeKS

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  _type = "dm"
  _devDir = "/dev/mapper"
  name = property(lambda d: d._name, lambda d, n: d._setName(n))
This device's name.

Inherited from StorageDevice: format, size, sysfsBlockDir, targetSize

Inherited from StorageDevice (private): _isDisk, _partitionable, _resizable

Inherited from Device (private): _id, _packages, _services

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, format=None, size=None, dmUuid=None, target=None, exists=None, parents=None, sysfsPath='')
(Constructor)

source code 
Create a DMDevice instance.

Arguments:

    name -- the device name (generally a device node's basename)

Keyword Arguments:

    target -- the device-mapper target type (string)
    size -- the device's size (units/format TBD)
    dmUuid -- the device's device-mapper UUID
    sysfsPath -- sysfs device path
    format -- a DeviceFormat instance
    parents -- a list of required Device instances
    exists -- indicates whether this is an existing device

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

dict(self)

source code 
Decorators:
  • @property
Overrides: Device.dict

fstabSpec(self)

source code 

Return the device specifier for use in /etc/fstab.

Decorators:
  • @property
Overrides: StorageDevice.fstabSpec

mapName(self)

source code 

This device's device-mapper map name

Decorators:
  • @property

status(self)

source code 
This device's status.

For now, this should return a boolean:
    True    the device is open and ready for use
    False   the device is not open

Decorators:
  • @property
Overrides: Device.status
(inherited documentation)

updateSysfsPath(self)

source code 

Update this device's sysfs path.

Overrides: StorageDevice.updateSysfsPath

slave(self)

source code 

This device's backing device.

Decorators:
  • @property