[pve-devel] [PATCH v3 container 14/19] skip pending changes while taking backup
Oguz Bektas
o.bektas at proxmox.com
Mon Oct 14 10:28:46 CEST 2019
we can only clone the current state of container (without pending
changes), as otherwise the on-disk state might not match the
configuration. this also makes it more consistent to qemu-server
behavior.
Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
---
src/PVE/VZDump/LXC.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm
index ad5ecc8..2a6449c 100644
--- a/src/PVE/VZDump/LXC.pm
+++ b/src/PVE/VZDump/LXC.pm
@@ -288,6 +288,7 @@ sub assemble {
delete $conf->{lock};
delete $conf->{snapshots};
delete $conf->{parent};
+ delete $conf->{pending};
PVE::Tools::file_set_contents("$tmpdir/etc/vzdump/pct.conf", PVE::LXC::Config::write_pct_config("/lxc/$vmid.conf", $conf));
--
2.20.1
More information about the pve-devel
mailing list