5
0
mirror of git://git.proxmox.com/git/pve-storage.git synced 2025-08-25 21:49:35 +03:00

allow to choose content type for local storage

Also allow to disable local storage.
This commit is contained in:
Dietmar Maurer
2015-10-12 06:52:28 +02:00
parent a6ad1a0815
commit dc6ff39f57

View File

@ -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};