[pve-devel] [PATCH storage 24/26] api: add vtype parameter to create call

Wolfgang Bumiller
2025-07-29T11:15:31Z

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;