vzdump : abord backup if disk have iothread enabled.

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>
This commit is contained in:
Alexandre Derumier 2015-07-21 15:14:36 +02:00 committed by Dietmar Maurer
parent 220c068f59
commit 7d930a0e7e

View 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};