pyanaconda.modules.storage.partitioning.automatic.resizable_interface

Classes

ResizableDeviceTreeInterface

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.DeviceTreeInterface

DBus 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]

ShrinkDevice(device_id, size)[source]

Shrink the size of the device.

Parameters:
  • device_id (Str) – device ID of the device

  • size (UInt64) – a new size in bytes

RemoveDevice(device_id)[source]

Remove a device after removing its dependent devices.

If the device is protected, do nothing. If the device has protected children, just remove the unprotected ones.

Parameters:

device_id (Str) – device ID of the device