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

Class DMRaidArrayDevice

source code

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

A dmraid (device-mapper RAID) device

Instance Methods [hide private]
 
__init__(self, name, raidSet=None, format=None, size=None, parents=None, sysfsPath='')
Create a DMRaidArrayDevice instance.
source code
 
raidSet(self) source code
 
_addDevice(self, device)
Add a new member device to the array.
source code
 
members(self) source code
 
devices(self)
Return a list of this array's member device instances.
source code
 
deactivate(self)
Deactivate the raid set.
source code
 
activate(self)
Activate the raid set.
source code
 
_setup(self, intf=None, orig=False)
Open, or set up, a device.
source code
 
teardown(self, recursive=None)
Close, or tear down, a device.
source code
 
description(self) source code
 
model(self) source code
 
dracutSetupArgs(self) 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, vendor

Inherited from Device: __deepcopy__, addChild, dependsOn, 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-raid array"
  _packages = ["dmraid"]
  _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, _services

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 
Create a DMRaidArrayDevice instance.

Arguments:

    name -- the dmraid name also the device node's basename

Keyword Arguments:

    raidSet -- the RaidSet object from block
    parents -- a list of the member devices
    sysfsPath -- sysfs device path
    size -- the device's size
    format -- a DeviceFormat instance

Overrides: object.__init__

raidSet(self)

source code 
Decorators:
  • @property

_addDevice(self, device)

source code 
Add a new member device to the array.

XXX This is for use when probing devices, not for modification
    of arrays.

members(self)

source code 
Decorators:
  • @property

devices(self)

source code 

Return a list of this array's member device instances.

Decorators:
  • @property

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

source code 

Open, or set up, a device.

Overrides: StorageDevice._setup

teardown(self, recursive=None)

source code 

Close, or tear down, a device.

Overrides: Device.teardown

description(self)

source code 
Decorators:
  • @property

model(self)

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

dracutSetupArgs(self)

source code 
Overrides: Device.dracutSetupArgs