pyanaconda.modules.storage.partitioning.interactive.scheduler_interface
Classes
DBus interface for the device tree scheduler. |
Module Contents
- class pyanaconda.modules.storage.partitioning.interactive.scheduler_interface.DeviceTreeSchedulerInterface[source]
Bases:
pyanaconda.modules.storage.devicetree.devicetree_interface.DeviceTreeInterface
DBus interface for the device tree scheduler.
- IsDevice(device_id)[source]
Is the specified device in the device tree?
It can recognize also hidden and incomplete devices.
- Parameters:
device_id (Str) – ID of the device
- Returns:
True or False
- Return type:
Bool
- IsDeviceLocked(device_id)[source]
Is the specified device locked?
- Parameters:
device_id (Str) – ID of the device
- Returns:
True or False
- Return type:
Bool
- IsDeviceEditable(device_id)[source]
Is the specified device editable?
- Parameters:
device_id (Str) – ID of the device
- Returns:
True or False
- Return type:
Bool
- CheckCompleteness(device_id)[source]
Check that the specified device is complete.
- Parameters:
device_id (Str) – ID of the device
- Returns:
a validation report
- Return type:
Structure
- GetDefaultFileSystem()[source]
Get the default type of a filesystem.
- Returns:
a filesystem name
- Return type:
Str
- GetDefaultLUKSVersion()[source]
Get the default version of LUKS.
- Returns:
a version of LUKS
- Return type:
Str
- GetContainerFreeSpace(container_name)[source]
Get total free space in the specified container.
- Parameters:
container_name (Str) – device ID of the container
- Returns:
a size in bytes
- Return type:
UInt64
- GenerateSystemName()[source]
Generate a name of the new installation.
- Returns:
a translated string
- Return type:
Str
- GenerateSystemData(boot_drive)[source]
Generate the new installation data.
- Parameters:
boot_drive (Str) – a name of the boot drive
- Returns:
a structure with data about the new installation
- Return type:
Structure
- GenerateDeviceName(mount_point, format_type)[source]
Get a suggestion for a device name.
- Parameters:
mount_point (Str) – a mount point
format_type (Str) – a format type
- Returns:
a generated device name
- Return type:
Str
- GenerateContainerName()[source]
Get a suggestion for a container name.
- Returns:
a generated container name
- Return type:
Str
- GenerateDeviceFactoryRequest(device_id)[source]
Generate a device factory request for the given device.
The request will reflect the current state of the device. It can be modified and used to change the device.
- Parameters:
device_id (Str) – a device ID
- Returns:
a device factory request
- Return type:
Structure
- GenerateDeviceFactoryPermissions(request)[source]
Generate device factory permissions for the given request.
The permissions will reflect which device attributes we are allowed to change in the requested device.
- Parameters:
request (Structure) – a device factory request
- Returns:
device factory permissions
- Return type:
Structure
- GenerateContainerData(request)[source]
Generate the container data for the device factory request.
- Parameters:
request (Structure) – a device factory request
- Returns:
a device factory request
- Return type:
Structure
- UpdateContainerData(request, container_name)[source]
Update the container data in the device factory request.
- Parameters:
request (Structure) – a device factory request
container_name (Str) – a container name
- Returns:
a device factory request
- Return type:
Structure
- CollectNewDevices(boot_drive)[source]
Get all new devices in the device tree.
FIXME: Remove the boot drive option.
- Parameters:
boot_drive (Str) – a name of the boot drive
- Returns:
a list of device names
- Return type:
List[Str]
- CollectUnusedDevices()[source]
Collect all devices that are not used in existing or new installations.
- Returns:
a list of device names
- Return type:
List[Str]
- CollectUnusedMountPoints()[source]
Collect mount points that can be assigned to a device.
- Returns:
a list of mount points
- Return type:
List[Str]
- CollectContainers(device_type)[source]
Collect containers of the given type.
- Parameters:
device_type (Int) – a device type
- Returns:
a list of container names
- Return type:
List[Str]
- CollectSupportedSystems()[source]
Collect supported existing or new installations.
- Returns:
a list of data about found installations
- Return type:
List[Structure]
- GetDeviceTypesForDevice(device_id)[source]
Collect supported device types for the given device.
- Parameters:
device_id (Str) – a device ID
- Returns:
a list of device types
- Return type:
List[Int]
- GetFileSystemsForDevice(device_id)[source]
Get supported file system types for the given device.
- Parameters:
device_id (Str) – a device ID
- Returns:
a list of file system names
- Return type:
List[Str]
- GetSupportedRaidLevels(device_type)[source]
Get RAID levels for the specified device type.
- Parameters:
device_type (Int) – a type of the device
- Returns:
a list of RAID level names
- Return type:
List[Str]
- ValidateMountPoint(mount_point)[source]
Validate the given mount point.
- Parameters:
mount_point (Str) – a path to a mount point
- Returns:
a validation report
- Return type:
Structure
- ValidateRaidLevel(raid_level, num_members)[source]
Validate the given RAID level.
- Parameters:
raid_level (Str) – a RAID level name
num_members (Int) – a number of members
- Returns:
a validation report
- Return type:
Structure
- ValidateContainerName(name)[source]
Validate the given container name.
- Parameters:
name (Str) – a container name
- Returns:
a validation report
- Return type:
Structure
- ValidateDeviceFactoryRequest(request)[source]
Validate the given device factory request.
- Parameters:
request (Structure) – a device factory request
- Returns:
a validation report
- Return type:
Structure
- AddDevice(request)[source]
Add a new device to the storage model.
- Parameters:
request (Structure) – a device factory request
- Raise:
StorageConfigurationError if the device cannot be created
- ChangeDevice(request, original_request)[source]
Change a device in the storage model.
FIXME: Remove the original request from the arguments.
- Parameters:
request (Structure) – a device factory request
original_request (Structure) – an original device factory request
- Raise:
StorageConfigurationError if the device cannot be changed
- ResetDevice(device_id)[source]
Reset the specified device in the storage model.
FIXME: Merge with DestroyDevice.
- Parameters:
device_id (Str) – ID of the device
- Raise:
StorageConfigurationError in case of failure