[pve-devel] [PATCH v4 qemu-server 4/12] qemuserver: foreach_volid: test regular config last
Aaron Lauterer
a.lauterer at proxmox.com
Fri Jun 16 11:57:00 CEST 2023
after snapshots and the pending section to make sure, that volids that
are referenced here, will be marked correctly, e.g. 'is_unused'.
Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
---
changes since v3: new patch and change, wasn't there before
PVE/QemuServer.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index d485495..86f8f10 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -4903,8 +4903,6 @@ sub foreach_volid {
include_unused => 1,
};
- PVE::QemuConfig->foreach_volume_full($conf, $include_opts, $test_volid);
-
if (defined($conf->{pending}) && $conf->{pending}->%*) {
PVE::QemuConfig->foreach_volume_full($conf->{pending}, $include_opts, $test_volid, undef, 1);
}
@@ -4914,6 +4912,8 @@ sub foreach_volid {
PVE::QemuConfig->foreach_volume_full($snap, $include_opts, $test_volid, $snapname);
}
+ PVE::QemuConfig->foreach_volume_full($conf, $include_opts, $test_volid);
+
foreach my $volid (keys %$volhash) {
&$func($volid, $volhash->{$volid}, @param);
}
--
2.39.2
More information about the pve-devel
mailing list