From: Peter Krempa Date: Thu, 29 Jan 2026 09:28:16 +0000 (+0100) Subject: qemu: Remove 'removable' field from 'qemuDomainDiskPrivate' X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=074f7fba94388d01806ae76a5413051e34669782;p=thirdparty%2Flibvirt.git qemu: Remove 'removable' field from 'qemuDomainDiskPrivate' The field is only set, but never read. Drop it. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/src/qemu/qemu_domain.h b/src/qemu/qemu_domain.h index 095c36b8ac..20d6bd316c 100644 --- a/src/qemu/qemu_domain.h +++ b/src/qemu/qemu_domain.h @@ -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 */ diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index c5b2a5fda8..fba1dbe844 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -9555,7 +9555,6 @@ qemuProcessRefreshDiskProps(virDomainDiskDef *disk, } } - diskpriv->removable = info->removable; diskpriv->tray = info->tray; }