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

Class MultipathDevice

source code

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

A multipath device

Instance Methods [hide private]
 
__init__(self, name, info, format=None, size=None, parents=None, sysfsPath='')
Create a MultipathDevice instance.
source code
 
setupIdentity(self)
Adds identifying remarks to MultipathDevice object.
source code
 
identity(self)
Get identity set with setupIdentityFromInfo()
source code
 
wwid(self) source code
 
model(self) source code
 
vendor(self) source code
 
description(self) source code
 
addParent(self, parent)
Add a parent device to the mpath.
source code
 
deactivate(self)
This is never called, included just for documentation.
source code
 
_setup(self, intf=None, orig=False)
Open, or set up, a device.
source code
 
_postSetup(self)
Perform post-setup operations.
source code

Inherited from DMDevice: __repr__, dict, fstabSpec, getDMNode, mapName, setupPartitions, slave, status, teardownPartitions, updateSysfsPath

Inherited from DMDevice (private): _setName

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

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-multipath"
  _packages = ["device-mapper-multipath"]
  _services = ["multipathd"]
  _partitionable = True
  _isDisk = True

Inherited from DMDevice: name

Inherited from DMDevice (private): _devDir

Inherited from StorageDevice: format, size, sysfsBlockDir, targetSize

Inherited from StorageDevice (private): _resizable

Inherited from Device (private): _id

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, info, format=None, size=None, parents=None, sysfsPath='')
(Constructor)

source code 
Create a MultipathDevice instance.

Arguments:

    name -- the device name (generally a device node's basename)
    info -- the udev info for this device

Keyword Arguments:

    sysfsPath -- sysfs device path
    size -- the device's size
    format -- a DeviceFormat instance
    parents -- a list of the backing devices (Device instances)

Overrides: object.__init__

setupIdentity(self)

source code 

Adds identifying remarks to MultipathDevice object.

May be overridden by a sub-class for e.g. RDAC handling.

identity(self)

source code 

Get identity set with setupIdentityFromInfo()

May be overridden by a sub-class for e.g. RDAC handling.

Decorators:
  • @property

wwid(self)

source code 
Decorators:
  • @property

model(self)

source code 
Decorators:
  • @property
Overrides: StorageDevice.model

vendor(self)

source code 
Decorators:
  • @property
Overrides: StorageDevice.vendor

description(self)

source code 
Decorators:
  • @property

deactivate(self)

source code 

This is never called, included just for documentation.

If we called this during teardown(), we wouldn't be able to get parted object because /dev/mapper/mpathX wouldn't exist.

_setup(self, intf=None, orig=False)

source code 

Open, or set up, a device.

Overrides: StorageDevice._setup

_postSetup(self)

source code 

Perform post-setup operations.

Overrides: StorageDevice._postSetup
(inherited documentation)