create 'dump' directory if storage contains containers
This is needed by openvz migrate to store state.
This commit is contained in:
2
Makefile
2
Makefile
@ -2,7 +2,7 @@ RELEASE=2.2
|
|||||||
|
|
||||||
VERSION=2.0
|
VERSION=2.0
|
||||||
PACKAGE=libpve-storage-perl
|
PACKAGE=libpve-storage-perl
|
||||||
PKGREL=32
|
PKGREL=33
|
||||||
|
|
||||||
DESTDIR=
|
DESTDIR=
|
||||||
PREFIX=/usr
|
PREFIX=/usr
|
||||||
|
|||||||
@ -621,9 +621,12 @@ sub activate_storage {
|
|||||||
|
|
||||||
if (defined($scfg->{content})) {
|
if (defined($scfg->{content})) {
|
||||||
foreach my $vtype (keys %$vtype_subdirs) {
|
foreach my $vtype (keys %$vtype_subdirs) {
|
||||||
next if !defined($scfg->{content}->{$vtype});
|
# OpenVZMigrate uses backup (dump) dir
|
||||||
my $subdir = $class->get_subdir($scfg, $vtype);
|
if (defined($scfg->{content}->{$vtype}) ||
|
||||||
mkpath $subdir if $subdir ne $path;
|
($vtype eq 'backup' && defined($scfg->{content}->{'rootdir'}))) {
|
||||||
|
my $subdir = $class->get_subdir($scfg, $vtype);
|
||||||
|
mkpath $subdir if $subdir ne $path;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
libpve-storage-perl (2.0-33) unstable; urgency=low
|
||||||
|
|
||||||
|
* create 'dump' directory if storage contains containers
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Tue, 02 Oct 2012 13:36:35 +0200
|
||||||
|
|
||||||
libpve-storage-perl (2.0-32) unstable; urgency=low
|
libpve-storage-perl (2.0-32) unstable; urgency=low
|
||||||
|
|
||||||
* qcow2 : preallocate metadatas at file creation
|
* qcow2 : preallocate metadatas at file creation
|
||||||
|
|||||||
Reference in New Issue
Block a user