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:
@ -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};
|
||||
|
||||
|
Reference in New Issue
Block a user