libioc.Storage package

Module contents

Abstraction of jail storage operations.

class libioc.Storage.Storage(jail, zfs=None, safe_mode=True, logger=None)[source]

Bases: object

Abstraction of jail storage operations.

clone_resource(resource)[source]

Clone another resource to a the current dataset_name.

Return type

None

create_jail_mountpoint(basedir)[source]

Ensure the destination mountpoint exists relative to the jail.

Return type

None

rename(new_name, event_scope=None)[source]

Rename the dataset and its snapshots.

Return type

Generator[IocEvent, None, None]

teardown(event_scope=None)[source]

Unmount system mountpoints and devices from a jail.

Return type

Generator[TeardownSystemMounts, None, None]