From dc6ff39f5762b0942dceec3571bc2a6dd0af9097 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 12 Oct 2015 06:52:28 +0200 Subject: [PATCH] allow to choose content type for local storage Also allow to disable local storage. --- PVE/Storage/Plugin.pm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm index 603e75d..d65bd11 100644 --- a/PVE/Storage/Plugin.pm +++ b/PVE/Storage/Plugin.pm @@ -282,7 +282,7 @@ sub parse_config { my $ids = $cfg->{ids}; # make sure we have a reasonable 'local:' storage - # openvz expects things to be there + # we want 'local' to be always the same 'type' (on all cluster nodes) if (!$ids->{local} || $ids->{local}->{type} ne 'dir' || ($ids->{local}->{path} && $ids->{local}->{path} ne '/var/lib/vz')) { $ids->{local} = { @@ -294,11 +294,6 @@ sub parse_config { }; } - # we always need this for OpenVZ - $ids->{local}->{content}->{rootdir} = 1; - $ids->{local}->{content}->{vztmpl} = 1; - delete ($ids->{local}->{disable}); - # make sure we have a path $ids->{local}->{path} = '/var/lib/vz' if !$ids->{local}->{path};