Package pyanaconda :: Package storage :: Package devicelibs :: Module mpath :: Class MultipathTopology
[hide private]
[frames] | no frames]

Class MultipathTopology

source code

object --+
         |
        MultipathTopology

Instance Methods [hide private]
 
__init__(self, devices_list)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_build_devmap(self) source code
 
_build_mpath_topology(self) source code
 
_build_topology(self) source code
 
devices_iter(self)
Generator.
source code
 
singlepaths_iter(self)
Generator.
source code
 
multipath_name(self, mpath_member_name)
If the mpath_member_name is a member of a multipath device return the name of the device (e.g.
source code
 
multipaths_iter(self)
Generator.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, devices_list)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

devices_iter(self)

source code 

Generator. Yields all disk devices, mpaths members, coalesced mpath devices and partitions.

This property guarantees the order of the returned devices is the same as in the device list passed to the object's constructor.

singlepaths_iter(self)

source code 

Generator. Yields only the singlepath disks.

multipath_name(self, mpath_member_name)

source code 

If the mpath_member_name is a member of a multipath device return the name of the device (e.g. mpathc).

Else return None.

multipaths_iter(self)

source code 

Generator. Yields all the multipath members, in a topology.

Every iteration returns a list of mpath member devices forming a multipath.