]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: snapshot: Forbid snapshots of iSCSI passthrough devices
authorPeter Krempa <pkrempa@redhat.com>
Fri, 18 Jul 2014 09:07:01 +0000 (11:07 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 18 Jul 2014 15:20:51 +0000 (17:20 +0200)
As with the local SCSI passthrough devicesm qemu can't support snapshots
on those as the block ops are handled by the device. This is also true
for iSCSI backing of the disk. Remove the check for the local block
device and just forbid snapshot when the disk is of type 'lun'.

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

src/qemu/qemu_driver.c

index 33541d34f7d6471a67b94ddd0a041c0ae239287a..3096688fad7425f9bcfbb4ef498ec727c250ded8 100644 (file)
@@ -12434,10 +12434,7 @@ qemuDomainSnapshotPrepareDiskExternalBackingInactive(virDomainDiskDefPtr disk)
 static int
 qemuDomainSnapshotPrepareDiskExternalBackingActive(virDomainDiskDefPtr disk)
 {
-    int actualType = virStorageSourceGetActualType(disk->src);
-
-    if (actualType == VIR_STORAGE_TYPE_BLOCK &&
-        disk->device == VIR_DOMAIN_DISK_DEVICE_LUN) {
+    if (disk->device == VIR_DOMAIN_DISK_DEVICE_LUN) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
                        _("external active snapshots are not supported on scsi "
                          "passthrough devices"));