From bea021ac3c5d73530b87b3a3da9dc3effcebd63a Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 29 Jan 2016 08:47:21 +0100 Subject: [PATCH] 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. --- PVE/VZDump/QemuServer.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm index ccf49441..16366395 100644 --- a/PVE/VZDump/QemuServer.pm +++ b/PVE/VZDump/QemuServer.pm @@ -64,10 +64,10 @@ sub prepare { 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)"); 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"; }