[pve-devel] [PATCH storage 07/26] common: add pve-storage-vtype standard option with new types
Wolfgang Bumiller
w.bumiller at proxmox.com
Tue Jul 29 13:15:20 CEST 2025
This adds the vm-vol and ct-vol vtypes introduced in the upcoming
commits.
Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
src/PVE/Storage/Common.pm | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/src/PVE/Storage/Common.pm b/src/PVE/Storage/Common.pm
index 222dc76..b2ebd50 100644
--- a/src/PVE/Storage/Common.pm
+++ b/src/PVE/Storage/Common.pm
@@ -59,6 +59,23 @@ PVE::JSONSchema::register_standard_option(
},
);
+=head3 pve-storage-vtype
+
+Possible vtypes a guest image can have.
+
+=cut
+
+PVE::JSONSchema::register_standard_option(
+ 'pve-storage-vtype',
+ {
+ type => 'string',
+ enum => [qw(vm-vol ct-vol images rootdir)],
+ description =>
+ "The volume type indicates whether the volume is meant for VMs or containers."
+ . " The 'images' and 'rootdir' types are for legacy support and should be avoided.",
+ },
+);
+
=pod
=head1 FUNCTIONS
--
2.47.2
More information about the pve-devel
mailing list