disable vzdump for VM containing snapshots

This commit is contained in:
Dietmar Maurer 2012-09-27 09:42:48 +02:00
parent 8c55950564
commit 585b6e2839
4 changed files with 13 additions and 2 deletions

View File

@ -2,7 +2,7 @@ RELEASE=2.2
VERSION=2.0
PACKAGE=qemu-server
PKGREL=58
PKGREL=59
DESTDIR=
PREFIX=/usr

View File

@ -2922,7 +2922,8 @@ sub vm_start {
PVE::Storage::activate_volumes($storecfg, $vollist);
eval { run_command($cmd, timeout => $statefile ? undef : 30); };
eval { run_command($cmd, timeout => $statefile ? undef : 30,
umask => 0077); };
my $err = $@;
die "start failed: $err" if $err;

View File

@ -46,6 +46,10 @@ sub prepare {
my $conf = $self->{vmlist}->{$vmid} = PVE::QemuServer::load_config($vmid);
if (scalar(keys %{$conf->{snapshots}})) {
die "VM contains snapshots - unable to backup\n";
}
$task->{hostname} = $conf->{name};
my $lvmmap = PVE::VZDump::get_lvm_mapping();

View File

@ -1,3 +1,9 @@
qemu-server (2.0-59) unstable; urgency=low
* disable vzdump for VM containing snapshots
-- Proxmox Support Team <support@proxmox.com> Thu, 27 Sep 2012 09:41:19 +0200
qemu-server (2.0-58) unstable; urgency=low
* fix bug 251: use new command line syntax