From f515fcce623a86c07840fe67c7cff4fb84aa9406 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Wed, 18 Jun 2025 12:38:02 +0300 Subject: [PATCH] Fix volume_size_info in PVE VitastorPlugin --- patches/VitastorPlugin.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/VitastorPlugin.pm b/patches/VitastorPlugin.pm index 3aeed4c2..5ed1ccde 100644 --- a/patches/VitastorPlugin.pm +++ b/patches/VitastorPlugin.pm @@ -410,8 +410,8 @@ sub volume_size_info my $prefix = defined $scfg->{vitastor_prefix} ? $scfg->{vitastor_prefix} : 'pve/'; my ($vtype, $name, $vmid) = $class->parse_volname($volname); my $info = _process_list($scfg, $storeid, run_cli($scfg, [ 'ls', $prefix.$name ]))->[0]; - #return wantarray ? ($size, $format, $used, $parent, $st->ctime) : $size; - return $info->{size}; + # (size, format, used, parent, ctime) + return wantarray ? ($info->{size}, $info->{format}, $info->{size}, $info->{parent}, 0) : $info->{size}; } sub volume_resize