[pve-devel] [PATCH storage v2 1/4] add standard option for VM disk formats in file-based storages
Markus Frank
m.frank at proxmox.com
Wed Feb 12 14:02:26 CET 2025
Signed-off-by: Markus Frank <m.frank at proxmox.com>
---
src/PVE/Storage/Plugin.pm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/PVE/Storage/Plugin.pm b/src/PVE/Storage/Plugin.pm
index 65cf43f..9f21f0b 100644
--- a/src/PVE/Storage/Plugin.pm
+++ b/src/PVE/Storage/Plugin.pm
@@ -354,6 +354,13 @@ sub verify_format {
return $fmt;
}
+PVE::JSONSchema::register_standard_option('pve-storage-qm-image-format', {
+ type => 'string',
+ enum => ['raw', 'qcow2', 'vmdk'],
+ description => "Supported VM disk formats in a file-based storage.",
+ optional => 1,
+});
+
PVE::JSONSchema::register_format('pve-storage-options', \&verify_options);
sub verify_options {
my ($value, $noerr) = @_;
--
2.39.5
More information about the pve-devel
mailing list