[pve-devel] [PATCH v2 container 4/6] warn about unsupported backup configuration

Fabian Grünbichler f.gruenbichler at proxmox.com
Mon May 30 14:40:22 CEST 2016


---
Note: this should not affect many people..
 src/PVE/API2/LXC.pm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index 05f457a..3a04fa5 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -335,6 +335,13 @@ __PACKAGE__->register_method({
 				$mountpoint->{volume} = "$storage:$disksize";
 				$mp_param->{$ms} = PVE::LXC::Config->print_ct_mountpoint($mountpoint, $ms eq 'rootfs');
 			    } else {
+				my $type = $mountpoint->{type};
+				if ($mountpoint->{backup}) {
+				    warn "WARNING - unsupported configuration!\n";
+				    warn "backup was enabled for $type mountpoint $ms ('$mountpoint->{mp}')\n";
+				    warn "mountpoint configuration will be restored after archive extraction!\n";
+				    warn "contained files will be restored to wrong directory!\n";
+				}
 				$delayed_mp_param->{$ms} = PVE::LXC::Config->print_ct_mountpoint($mountpoint, $ms eq 'rootfs');
 			    }
 			});
-- 
2.1.4





More information about the pve-devel mailing list