public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH pve-storage] lvmplugin: find_free_diskname: check if fmt param exist
@ 2025-07-19 12:00 Alexandre Derumier via pve-devel
  2025-07-19 18:25 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Alexandre Derumier via pve-devel @ 2025-07-19 12:00 UTC (permalink / raw)
  To: pve-devel; +Cc: Alexandre Derumier

[-- Attachment #1: Type: message/rfc822, Size: 3620 bytes --]

From: Alexandre Derumier <alexandre.derumier@groupe-cyllene.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH pve-storage] lvmplugin: find_free_diskname: check if fmt param exist
Date: Sat, 19 Jul 2025 14:00:11 +0200
Message-ID: <20250719120011.3033185-1-alexandre.derumier@groupe-cyllene.com>

this log have been reported on the forum

"recovering backed-up configuration from 'qotom-pbs-bkp-for-beelink-vms-25g:backup/ct/110/2025-07-17T04:33:50Z'
Use of uninitialized value $fmt in string eq at /usr/share/perl5/PVE/Storage/LVMPlugin.pm line 517.
"

https://forum.proxmox.com/threads/pve-beta-9-cannot-restore-lxc-from-pbs.168633/
Signed-off-by: Alexandre Derumier <alexandre.derumier@groupe-cyllene.com>
---
 src/PVE/Storage/LVMPlugin.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/Storage/LVMPlugin.pm b/src/PVE/Storage/LVMPlugin.pm
index e14f12d..8be2a10 100644
--- a/src/PVE/Storage/LVMPlugin.pm
+++ b/src/PVE/Storage/LVMPlugin.pm
@@ -514,7 +514,7 @@ sub find_free_diskname {
 
     my $disk_list = [keys %{ $lvs->{$vg} }];
 
-    $add_fmt_suffix = $fmt eq 'qcow2' ? 1 : undef;
+    $add_fmt_suffix = $fmt && $fmt eq 'qcow2' ? 1 : undef;
 
     return PVE::Storage::Plugin::get_next_vm_diskname(
         $disk_list, $storeid, $vmid, $fmt, $scfg, $add_fmt_suffix,
-- 
2.39.5



[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pve-devel] applied: [PATCH pve-storage] lvmplugin: find_free_diskname: check if fmt param exist
  2025-07-19 12:00 [pve-devel] [PATCH pve-storage] lvmplugin: find_free_diskname: check if fmt param exist Alexandre Derumier via pve-devel
@ 2025-07-19 18:25 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2025-07-19 18:25 UTC (permalink / raw)
  To: pve-devel

On Sat, 19 Jul 2025 14:00:11 +0200, Alexandre Derumier via pve-devel wrote:
> this log have been reported on the forum
> 
> "recovering backed-up configuration from 'qotom-pbs-bkp-for-beelink-vms-25g:backup/ct/110/2025-07-17T04:33:50Z'
> Use of uninitialized value $fmt in string eq at /usr/share/perl5/PVE/Storage/LVMPlugin.pm line 517.
> "
> 
> https://forum.proxmox.com/threads/pve-beta-9-cannot-restore-lxc-from-pbs.168633/
> 
> [...]

Applied, thanks!

[1/1] lvmplugin: find_free_diskname: check if fmt param exist
      commit: 4f3c1d40efaa929626eadfb5e1843c833cd9e0c6


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-07-19 18:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-19 12:00 [pve-devel] [PATCH pve-storage] lvmplugin: find_free_diskname: check if fmt param exist Alexandre Derumier via pve-devel
2025-07-19 18:25 ` [pve-devel] applied: " Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal