]> git.proxmox.com Git - qemu-server.git/commitdiff
Fix #879: exclusion of disk for backup
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 29 Jan 2016 07:47:21 +0000 (08:47 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 29 Jan 2016 09:03:54 +0000 (10:03 +0100)
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

index ccf4944190007a55d5408b2918f14a7859126bcf..163663957320edb9fe4906e34048727631d52fa6 100644 (file)
@@ -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";
        }