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

Fabian Grünbichler f.gruenbichler at proxmox.com
Mon May 30 11:45:56 CEST 2016


---
Note: this should not affect many people..

 src/PVE/LXC/Create.pm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/PVE/LXC/Create.pm b/src/PVE/LXC/Create.pm
index 60470b1..ec6d2e5 100644
--- a/src/PVE/LXC/Create.pm
+++ b/src/PVE/LXC/Create.pm
@@ -122,6 +122,13 @@ sub recover_config {
 	    if ($mountpoint->{type} eq 'volume') {
 		$mp_param->{$ms} = $conf->{$ms};
 	    } 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} = $conf->{$ms};
 	    }
 	});
-- 
2.1.4





More information about the pve-devel mailing list