[pve-devel] [PATCH storage v3 1/4] add standard option for VM disk formats in file-based storages

Markus Frank m.frank at proxmox.com
Fri Mar 7 10:25:43 CET 2025


Signed-off-by: Markus Frank <m.frank at proxmox.com>
---
v3:
* removed 'optional => 1'
* changed description

 src/PVE/Storage/Plugin.pm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/PVE/Storage/Plugin.pm b/src/PVE/Storage/Plugin.pm
index 65cf43f..c15dc44 100644
--- a/src/PVE/Storage/Plugin.pm
+++ b/src/PVE/Storage/Plugin.pm
@@ -354,6 +354,12 @@ sub verify_format {
     return $fmt;
 }
 
+PVE::JSONSchema::register_standard_option('pve-vm-image-format', {
+    type => 'string',
+    enum => ['raw', 'qcow2', 'vmdk'],
+    description => "VM image formats.",
+});
+
 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