[pve-devel] [PATCH storage 23/26] pvesm: add vtype parameter to import command

Wolfgang Bumiller
2025-07-29T11:17:13Z

src/PVE/CLI/pvesm.pm | 2 ++
1 file changed, 2 insertions(+)

diff --git a/src/PVE/CLI/pvesm.pm b/src/PVE/CLI/pvesm.pm
index 860e46f..354582f 100755
--- a/src/PVE/CLI/pvesm.pm
+++ b/src/PVE/CLI/pvesm.pm
@@ -408,6 +408,7 @@ __PACKAGE__->register_method({
maxLength => 40,
optional => 1,
},
+ vtype => get_standard_option('pve-storage-vtype', { optional => 1 }),
},
},
returns => { type => 'string' },
@@ -491,6 +492,7 @@ __PACKAGE__->register_method({
$param->{base},
$param->{'with-snapshots'},
$param->{'allow-rename'},
+ $param->{vtype},
);
PVE::Storage::volume_snapshot_delete($cfg, $imported_volid, $delete)
if defined($delete);