]> git.proxmox.com Git - qemu-server.git/commitdiff
vzdump : abord backup if disk have iothread enabled.
authorAlexandre Derumier <aderumier@odiso.com>
Tue, 21 Jul 2015 13:14:36 +0000 (15:14 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 22 Jul 2015 10:28:52 +0000 (12:28 +0200)
Currently backup don't work with iothread feature, and crash qemu

For now, abord the backup if one of the vm drives have iothread enabled until backup code is fixed.

Upstream qemu backup cde already support iothread.
http://git.qemu.org/?p=qemu.git;a=commit;h=761731b1805f6ef64eb615e5b82a0801db3cde78

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/VZDump/QemuServer.pm

index 314538fb9f00356d49f398f0045d171c00f538f2..64146e88abca3980678f5e4a8136bd058be1952c 100644 (file)
@@ -67,6 +67,8 @@ sub prepare {
        if (defined($drive->{backup}) && $drive->{backup} eq "no") {
            $self->loginfo("exclude disk '$ds' (backup=no)");
            return;
+       } elsif (defined($drive->{iothread}) && $drive->{iothread} eq "on") {
+           die "disk '$ds' (iothread=on) can't use backup feature currently. Please set backup=no for this drive";
        }
 
        my $volid = $drive->{file};