]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: snapshot: Forbid snapshots when backing is a scsi passthrough disk
authorPeter Krempa <pkrempa@redhat.com>
Tue, 21 Jan 2014 14:34:39 +0000 (15:34 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 21 Jan 2014 16:05:21 +0000 (17:05 +0100)
commit3d1e9e47794f95b9862a3f75d268380b7b700687
treea7eeb4172c8807af6067ee028d34e9721157bff2
parent00e9d6071b2450659ce01bc984f64ecb5d7ba62d
qemu: snapshot: Forbid snapshots when backing is a scsi passthrough disk

https://bugzilla.redhat.com/show_bug.cgi?id=1034993

SCSI passthrough disks (<disk .. device="lun">) can't be used as backing
for snapshots. Currently with upstream qemu the vm crashes on such
attempt.

This patch adds a early check to catch an attempt to do such a snapshot
and rejects it right away. qemu will fix the issue but this will let us
control the error message.
src/qemu/qemu_driver.c