[PATCH storage 2/2] plugin: add optional type-text property

Joshua Huber jhuber at blockbridge.com
Tue Apr 5 19:09:15 CEST 2022


This property, if present, is the user-friendly textual representation
of the storage pool type. This gives a way for out-of-tree storage
plugins to have a properly formatted storage "Type" in various
front-end UI widgets.

Signed-off-by: Joshua Huber <jhuber at blockbridge.com>
---
 PVE/Storage/Plugin.pm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm
index 6673409..a7d0733 100644
--- a/PVE/Storage/Plugin.pm
+++ b/PVE/Storage/Plugin.pm
@@ -172,6 +172,11 @@ my $defaultData = {
 	    default => 'metadata',
 	    optional => 1,
 	},
+	'type-text' => {
+	    description => "User-friendly storage type name",
+	    type => 'string',
+	    optional => 1,
+	},
     },
 };
 
-- 
2.34.1





More information about the pve-devel mailing list