libioc.Config.Type.ZFS module

ioc configuration stored in ZFS properties.

class libioc.Config.Type.ZFS.BaseConfigZFS(dataset=None, file=None, logger=None)[source]

Bases: libioc.Config.Dataset.DatasetConfig

ioc configuration stored in ZFS properties.

config_type = 'zfs'
property exists

Signal if iocage ZFS configuration properties were found.

Return type

bool

map_input(data)[source]

Normalize data read from ZFS properties.

Return type

Data

read()[source]

Read the configuration from the ZFS dataset.

Return type

dict

write(data)[source]

Write changes to ZFS properties of the dataset.

Return type

None

class libioc.Config.Type.ZFS.DatasetConfigZFS(dataset, file=None, logger=None)[source]

Bases: libioc.Config.Type.ZFS.BaseConfigZFS

ioc ZFS jail configuration for legacy support.

property dataset

Shortcut to the config dataset.

Return type

ZFSDataset

libioc.Config.Type.ZFS.get_iocage_property_name(zfs_property_name)[source]

Determine if a ZFS property is an iocage configuration property.

Return type

str

libioc.Config.Type.ZFS.is_iocage_property(name)[source]

Determine if a property name is prefixed as iocage configuration.

Return type

bool