Like the LVM and ISCSI modules, this module is meant to provide commonly used ZFS helpers, so that ZFS-related functionality may be shared more easily among plugins. Moreover, this module also ought to help to reduce the inter-dependency of our own ZFS plugins, while simultaneously making ZFS utilities availble to third-party plugin authors.
Signed-off-by: Max Carrara <m.carr...@proxmox.com> --- src/PVE/Storage/Common.pm | 4 ++++ src/PVE/Storage/Common/Makefile | 1 + src/PVE/Storage/Common/ZFS.pm | 21 +++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 src/PVE/Storage/Common/ZFS.pm diff --git a/src/PVE/Storage/Common.pm b/src/PVE/Storage/Common.pm index 8a52498..f0d5ddf 100644 --- a/src/PVE/Storage/Common.pm +++ b/src/PVE/Storage/Common.pm @@ -52,6 +52,10 @@ Utilities concerned with LVM, such as manipulating logical volumes. Utilities concerned with working with paths. +=item C<PVE::Storage::Common::ZFS> + +Shared ZFS utilities and command line wrappers. + =back =head1 FUNCTIONS diff --git a/src/PVE/Storage/Common/Makefile b/src/PVE/Storage/Common/Makefile index e15a47c..d77d67e 100644 --- a/src/PVE/Storage/Common/Makefile +++ b/src/PVE/Storage/Common/Makefile @@ -2,6 +2,7 @@ SOURCES = \ ISCSI.pm \ LVM.pm \ Path.pm \ + ZFS.pm \ .PHONY: install diff --git a/src/PVE/Storage/Common/ZFS.pm b/src/PVE/Storage/Common/ZFS.pm new file mode 100644 index 0000000..8b0969c --- /dev/null +++ b/src/PVE/Storage/Common/ZFS.pm @@ -0,0 +1,21 @@ +package PVE::Storage::Common::ZFS; + +use strict; +use warnings; + +use parent qw(Exporter); + +our @EXPORT_OK = qw(); + +=pod + +=head1 NAME + +PVE::Storage::Common::ZFS - Shared ZFS utilities and command line wrappers + +=head1 FUNCTIONS + +=cut + + +1; -- 2.39.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel