[pve-devel] [PATCH storage 24/26] api: add vtype parameter to create call
Wolfgang Bumiller
w.bumiller at proxmox.com
Tue Jul 29 13:15:37 CEST 2025
Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
src/PVE/API2/Storage/Content.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/PVE/API2/Storage/Content.pm b/src/PVE/API2/Storage/Content.pm
index 1fe7303..bd5e4b2 100644
--- a/src/PVE/API2/Storage/Content.pm
+++ b/src/PVE/API2/Storage/Content.pm
@@ -214,6 +214,7 @@ __PACKAGE__->register_method({
optional => 1,
},
),
+ vtype => get_standard_option('pve-storage-vtype', { optional => 1 }),
},
},
returns => {
@@ -252,7 +253,7 @@ __PACKAGE__->register_method({
my $cfg = PVE::Storage::config();
my $volid = PVE::Storage::vdisk_alloc(
- $cfg, $storeid, $param->{vmid}, $param->{format}, $name, $size,
+ $cfg, $storeid, $param->{vmid}, $param->{format}, $name, $size, $param->{vtype},
);
return $volid;
--
2.47.2
More information about the pve-devel
mailing list