From 074f7fba94388d01806ae76a5413051e34669782 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 29 Jan 2026 10:28:16 +0100 Subject: [PATCH] qemu: Remove 'removable' field from 'qemuDomainDiskPrivate' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The field is only set, but never read. Drop it. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- src/qemu/qemu_domain.h | 2 -- src/qemu/qemu_process.c | 1 - 2 files changed, 3 deletions(-) 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; }