----- Le 17 Sep 19, à 12:44, Daniel Berteaud dan...@firewall-services.com a écrit :
> Linked clones has an image like base-100-disk-0/vm-101-disk-0 > The previous regex didn't catched it, and thus, resizing a linked clone > failed > --- > PVE/Storage/LunCmd/LIO.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/PVE/Storage/LunCmd/LIO.pm b/PVE/Storage/LunCmd/LIO.pm > index f246dbb..f2f8944 100644 > --- a/PVE/Storage/LunCmd/LIO.pm > +++ b/PVE/Storage/LunCmd/LIO.pm > @@ -192,7 +192,7 @@ my $extract_volname = sub { > my $volname = undef; > > my $base = get_base; > - if ($lunpath =~ /^$base\/$scfg->{pool}\/([\w\-]+)$/) { > + if ($lunpath =~ /((?:base|vm)\-\d+\-disk\-\d+)$/) { > $volname = $1; > } > > -- > 2.21.0 Just realized this one won't work for state volume (associated with snapshots). Will try to rewrok it ASAP -- [ https://www.firewall-services.com/ ] Daniel Berteaud FIREWALL-SERVICES SAS, La sécurité des réseaux Société de Services en Logiciels Libres Tél : +33.5 56 64 15 32 Matrix: @dani:fws.fr [ https://www.firewall-services.com/ | https://www.firewall-services.com ] _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel