blivet.static_data package

Submodules

blivet.static_data.encryption_data module

class blivet.static_data.encryption_data.Encryption_Data

Bases: object

Class to be used as a singleton. Maintains the encryption data.

add_passphrase(passphrase)
add_passphrases(passphrases)
clear_passphrases()
property encryption_passphrase
property luks_devs
property min_entropy
property passphrases
property pbkdf_args
reset(passphrase=None, luks_dict=None, stratis_dict=None)
save_passphrase(device)

Save a device’s encryption passphrase in case of reset.

property stratis_devs

blivet.static_data.luks_data module

blivet.static_data.lvm_info module

class blivet.static_data.lvm_info.LVsInfo

Bases: object

Class to be used as a singleton. Maintains the LVs cache.

property cache
drop_cache()
class blivet.static_data.lvm_info.PVsInfo

Bases: object

Class to be used as a singleton. Maintains the PVs cache.

property cache
drop_cache()
class blivet.static_data.lvm_info.VGsInfo

Bases: object

Class to be used as a singleton. Maintains the VGs cache.

property cache
drop_cache()

blivet.static_data.mpath_info module

class blivet.static_data.mpath_info.MpathMembers

Bases: object

A cache for querying multipath member devices

drop_cache()
is_mpath_member(device)

Checks if the given device is a member of some multipath mapping or not.

Parameters:

device (str) – path of the device to query

update_cache(device)

Update the cache with the given device (checks and adds it is an mpath member)

Parameters:

device (str) – path of the device to check and add

blivet.static_data.stratis_info module

class blivet.static_data.stratis_info.StratisBlockdevInfo(path, uuid, pool_name, pool_uuid, object_path)

Bases: tuple

Create new instance of StratisBlockdevInfo(path, uuid, pool_name, pool_uuid, object_path)

object_path

Alias for field number 4

path

Alias for field number 0

pool_name

Alias for field number 2

pool_uuid

Alias for field number 3

uuid

Alias for field number 1

class blivet.static_data.stratis_info.StratisFilesystemInfo(name, uuid, used_size, size_limit, pool_name, pool_uuid, object_path)

Bases: tuple

Create new instance of StratisFilesystemInfo(name, uuid, used_size, size_limit, pool_name, pool_uuid, object_path)

name

Alias for field number 0

object_path

Alias for field number 6

pool_name

Alias for field number 4

pool_uuid

Alias for field number 5

size_limit

Alias for field number 3

used_size

Alias for field number 2

uuid

Alias for field number 1

class blivet.static_data.stratis_info.StratisInfo

Bases: object

Class to be used as a singleton. Maintains the Stratis devices info cache.

property blockdevs
drop_cache()
property filesystems
get_blockdev_info(bd_path)
get_filesystem_info(pool_name, fs_name)
get_pool_info(pool_name)
property pools
property stopped_pools
class blivet.static_data.stratis_info.StratisPoolInfo(name, uuid, physical_size, physical_used, object_path, encrypted, clevis, overprovisioning, fs_limit)

Bases: tuple

Create new instance of StratisPoolInfo(name, uuid, physical_size, physical_used, object_path, encrypted, clevis, overprovisioning, fs_limit)

clevis

Alias for field number 6

encrypted

Alias for field number 5

fs_limit

Alias for field number 8

name

Alias for field number 0

object_path

Alias for field number 4

overprovisioning

Alias for field number 7

physical_size

Alias for field number 2

physical_used

Alias for field number 3

uuid

Alias for field number 1

class blivet.static_data.stratis_info.StratisStoppedPoolInfo(uuid, name, devices, encrypted)

Bases: tuple

Create new instance of StratisStoppedPoolInfo(uuid, name, devices, encrypted)

devices

Alias for field number 2

encrypted

Alias for field number 3

name

Alias for field number 1

uuid

Alias for field number 0

Module contents