create 'dump' directory if storage contains containers
This is needed by openvz migrate to store state.
This commit is contained in:
@ -621,9 +621,12 @@ sub activate_storage {
|
||||
|
||||
if (defined($scfg->{content})) {
|
||||
foreach my $vtype (keys %$vtype_subdirs) {
|
||||
next if !defined($scfg->{content}->{$vtype});
|
||||
my $subdir = $class->get_subdir($scfg, $vtype);
|
||||
mkpath $subdir if $subdir ne $path;
|
||||
# OpenVZMigrate uses backup (dump) dir
|
||||
if (defined($scfg->{content}->{$vtype}) ||
|
||||
($vtype eq 'backup' && defined($scfg->{content}->{'rootdir'}))) {
|
||||
my $subdir = $class->get_subdir($scfg, $vtype);
|
||||
mkpath $subdir if $subdir ne $path;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user