[pve-devel] [PATCH qemu-server v5 07/16] vzdump: anchor matches for pending and special sections
Fiona Ebner
f.ebner at proxmox.com
Mon Jan 27 12:29:14 CET 2025
Otherwise, a snapshot with a name that includes "pending" will be
misinterpreted as the pending section.
Only affects the warning messages, but still confusing.
Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
PVE/VZDump/QemuServer.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm
index 44b68ae9..72a76e65 100644
--- a/PVE/VZDump/QemuServer.pm
+++ b/PVE/VZDump/QemuServer.pm
@@ -237,9 +237,9 @@ sub assemble {
next if $line =~ m/^\#vzdump\#/; # just to be sure
next if $line =~ m/^\#qmdump\#/; # just to be sure
if ($line =~ m/^\[(.*)\]\s*$/) {
- if ($1 =~ m/PENDING/i) {
+ if ($1 =~ m/^PENDING$/i) {
$found_pending = 1;
- } elsif ($1 =~ m/special:cloudinit/) {
+ } elsif ($1 =~ m/^special:cloudinit$/) {
$found_cloudinit = 1;
} else {
$found_snapshot = 1;
--
2.39.5
More information about the pve-devel
mailing list