” Module for FormatProvider.
Abstract provider for data formats and filesystems. Each provider must have .device_type property, which represents blivet.formats.<DeviceFormat child>.type of format it represents.
Enumerate instances. Subclasses do not need to override this method, as long as enumeration by self.provides_format is sufficient.
Return all devices, on which the format resides. Usually there is only one device, but btrfs may provide more.
Return tuple (StorageDevice, DeviceFormat) for given Name property of CIMInstance. Return (None, None) if no such format exist. This is reverse function to get_format_id(). Subclasses do not need to override this method if they do not override get_format_id(). The returned device represents one randomly chosen device if the format spans over multiple devices, use get_devices() to get all of them.
Return tuple (StorageDevice, DeviceFormat) instance for given CIMInstanceName. Return (None, None) if no such instance_name exists. The returned device represents one randomly chosen device if the format spans over multiple devices, use get_devices() to get all of them.
Return LMI_DataFormat.Name. The name should be unique and stable across reboots or reconfigurations. UUID is used, subclasses do not need to override this method.
Get instance. Subclasses should override this method, the default implementation just check if the instance exists.
Return CIMInstanceName for given DeviceFormat subclass.