From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id EA7FD1FF2C8 for ; Wed, 17 Jul 2024 11:44:07 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 8510038E2A; Wed, 17 Jul 2024 11:44:00 +0200 (CEST) From: Max Carrara To: pve-devel@lists.proxmox.com Date: Wed, 17 Jul 2024 11:40:32 +0200 Message-Id: <20240717094034.124857-35-m.carrara@proxmox.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240717094034.124857-1-m.carrara@proxmox.com> References: <20240717094034.124857-1-m.carrara@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.020 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment PROLO_LEO1 0.1 Meta Catches all Leo drug variations so far SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [RFC pve-storage 34/36] common: zfs: introduce module for common ZFS helpers X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" 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 --- 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 + +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