]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemuDomainDiskChangeSupported: Fill in missing check
authorAdam Julis <ajulis@redhat.com>
Fri, 21 Jun 2024 16:16:55 +0000 (18:16 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 24 Jun 2024 09:14:56 +0000 (11:14 +0200)
The attribute 'discard_no_unref' of <disk/> is not allowed to be
changed while the virtual machine is running.

Resolves: https://issues.redhat.com/browse/RHEL-37542
Signed-off-by: Adam Julis <ajulis@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_domain.c

index 2c8f5b1aadda25a2fe26c17d37fa1a166d2d7794..1a90311ca5d609ed91cc380625e3cc91f326b060 100644 (file)
@@ -8459,6 +8459,7 @@ qemuDomainDiskChangeSupported(virDomainDiskDef *disk,
     CHECK_EQ(ioeventfd, "ioeventfd", true);
     CHECK_EQ(event_idx, "event_idx", true);
     CHECK_EQ(copy_on_read, "copy_on_read", true);
+    CHECK_EQ(discard_no_unref, "discard_no_unref", true);
     /* "snapshot" is a libvirt internal field and thus can be changed */
     /* startupPolicy is allowed to be updated. Therefore not checked here. */
     CHECK_EQ(transient, "transient", true);