5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-02-02 09:47:13 +03:00

Fix #879: exclusion of disk for backup

With the change to a property string the backup and iothread
properties were changed from type string to type boolean and
need to be treated as such.
This commit is contained in:
Wolfgang Bumiller 2016-01-29 08:47:21 +01:00 committed by Dietmar Maurer
parent 3457d090c6
commit bea021ac3c

View File

@ -64,10 +64,10 @@ sub prepare {
return if PVE::QemuServer::drive_is_cdrom($drive); return if PVE::QemuServer::drive_is_cdrom($drive);
if (defined($drive->{backup}) && $drive->{backup} eq "no") { if (defined($drive->{backup}) && !$drive->{backup}) {
$self->loginfo("exclude disk '$ds' (backup=no)"); $self->loginfo("exclude disk '$ds' (backup=no)");
return; return;
} elsif (defined($drive->{iothread}) && $drive->{iothread} eq "on") { } elsif ($drive->{iothread}) {
die "disk '$ds' (iothread=on) can't use backup feature currently. Please set backup=no for this drive"; die "disk '$ds' (iothread=on) can't use backup feature currently. Please set backup=no for this drive";
} }