pyanaconda.modules.storage.partitioning.automatic.resizable_interface
Classes
DBus interface for the resizable device tree. |
Module Contents
- class pyanaconda.modules.storage.partitioning.automatic.resizable_interface.ResizableDeviceTreeInterface[source]
Bases:
pyanaconda.modules.storage.devicetree.devicetree_interface.DeviceTreeInterfaceDBus interface for the resizable device tree.
- IsDevicePartitioned(device_id)[source]
Is the specified device partitioned?
- Parameters:
device_id (Str) – device ID of the device
- Returns:
True or False
- Return type:
Bool
- IsDeviceShrinkable(device_id)[source]
Is the specified device shrinkable?
- Parameters:
device_id (Str) – device ID of the device
- Returns:
True or False
- Return type:
Bool
- GetDevicePartitions(device_id)[source]
Get partitions of the specified device.
- Parameters:
device_id (Str) – device ID of the device
- Returns:
a list of device IDs
- Return type:
List[Str]
- GetDeviceSizeLimits(device_id)[source]
Get size limits of the given device.
- Parameters:
device_id (Str) – device ID of the device
- Returns:
a tuple of min and max sizes in bytes
- Return type:
Tuple[UInt64, UInt64]