]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Remove 'removable' field from 'qemuDomainDiskPrivate'
authorPeter Krempa <pkrempa@redhat.com>
Thu, 29 Jan 2026 09:28:16 +0000 (10:28 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 12 Feb 2026 15:45:34 +0000 (16:45 +0100)
The field is only set, but never read. Drop it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_domain.h
src/qemu/qemu_process.c

index 095c36b8ac6479c03af601f4949a6e42dd1ac590..20d6bd316cb3e4c4b1816ea664820701b352fa39 100644 (file)
@@ -288,9 +288,7 @@ struct _qemuDomainDiskPrivate {
     virStorageSource *migrSource; /* disk source object used for NBD migration */
     bool migrationslice; /* storage slice was added for migration purposes */
 
-    /* information about the device */
     bool tray; /* device has tray */
-    bool removable; /* device media can be removed/changed */
 
     char *qomName; /* QOM path of the disk (also refers to the block backend) */
     char *nodeCopyOnRead; /* nodename of the disk-wide copy-on-read blockdev layer */
index c5b2a5fda8d48e69b07d46a55b4872fec5b2bb99..fba1dbe844ab1a6202e6018bc3ba31a037279700 100644 (file)
@@ -9555,7 +9555,6 @@ qemuProcessRefreshDiskProps(virDomainDiskDef *disk,
         }
     }
 
-    diskpriv->removable = info->removable;
     diskpriv->tray = info->tray;
 }