libioc.ZFS module¶
ioc libzfs enhancement module.
-
class
libioc.ZFS.
ZFS
[source]¶ Bases:
libzfs.ZFS
libzfs enhancement module.
-
clone_dataset
(source, target, delete_existing=False)[source]¶ Clone a ZFSDataset from a source to a target dataset name.
- Return type
None
-
clone_snapshot
(snapshot, target)[source]¶ Clone a ZFSSnapshot to the target dataset name.
- Return type
None
-
create_dataset
(dataset_name)[source]¶ Automatically get the pool and create a dataset from its name.
- Return type
ZFSDataset
-
delete_dataset_recursive
(dataset, delete_snapshots=True, delete_origin_snapshot=False)[source]¶ Recursively delete a dataset.
- Return type
None
-