[pve-devel] [PATCH qemu-server] Fix #879: exclusion of disk for backup
Wolfgang Bumiller
w.bumiller at proxmox.com
Fri Jan 29 08:47:21 CET 2016
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 ccf4944..1636639 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";
}
--
2.1.4
More information about the pve-devel
mailing list