” Module for DeviceProvider class.
CIM Provider which provides CIM StorageExtent or CIM_StoragePool of a Anaconda device.
In addition to CIM provider methods, this class and its subclasses can convert CIM InstanceName to Anaconda’s StorageDevice instance and a vice versa.
Class representing redundancy characteristics of a StorageExtent device, i.e. both StorageExtent and StoragePool
Return common redundancy characteristics for list of devices. Linear device is assumed, i.e. the data are either on self or on B.
raid_level: LINEAR = Linear, 0,1,5,6 - raidX
Return the combined data redundancy characteristics for two devices. Linear device is assumed, i.e. the data are either on self or on B.
Return the combined data redundancy characteristics for two devices combined in RAID0.
Return the combined data redundancy characteristics for two devices combined in RAID1.
Return the combined data redundancy characteristics for two devices combined in RAID10.
Return the combined data redundancy characteristics for two devices combined in RAID4.
Initialize the provider. Store reference to blivet.Blivet. Store reference to StorageConfiguration. Register at given ProviderManager.
Really delete given Anaconda StorageDevice.
Subclasses must override this method to allow DeleteInstance intrinsic method.
Return iterable with base devices for given StorageDevice. Base devices are StorageDevices, that the given StorageDevice depend on, e.g. RAID members of a RAID, physical volumes of a Volume Group and Volume Group of Logical Volume.
Returns Anaconda StorageDevice for given CIM InstanceName or None if no device is found.
Returns CIM InstanceName for given Anaconda StorageDevice. None if no device is found.
Returns redundancy characteristics for given Anaconda StorageDevice.
Returns OperationalStatus for given Anaconda StorageDevice. It combines statuses of all parent devices. Subclasses should override this method to provide additional statuses.