[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 6/7] qemu: Block disk hotplug when transient disk option is en
From: |
Masayoshi Mizuma |
Subject: |
[PATCH v2 6/7] qemu: Block disk hotplug when transient disk option is enabled |
Date: |
Fri, 28 Aug 2020 10:08:36 -0400 |
From: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
Block disk hotplug when transient disk option is enabled so far.
Signed-off-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
---
src/qemu/qemu_hotplug.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
index 2c6c30ce03..1c1b6c3acf 100644
--- a/src/qemu/qemu_hotplug.c
+++ b/src/qemu/qemu_hotplug.c
@@ -1031,6 +1031,12 @@ qemuDomainAttachDeviceDiskLiveInternal(virQEMUDriverPtr
driver,
return -1;
}
+ if (disk->transient) {
+ virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
+ _("transient disk hotplug isn't supported"));
+ return -1;
+ }
+
if (virDomainDiskTranslateSourcePool(disk) < 0)
goto cleanup;
--
2.27.0
- [PATCH v2 0/7] qemu: implementation of transient disk option, Masayoshi Mizuma, 2020/08/28
- [PATCH v2 1/7] qemuSnapshotDiskPrepareOne: Get available even if snapdisk is NULL, Masayoshi Mizuma, 2020/08/28
- [PATCH v2 2/7] qemu: Introduce functions to handle transient disk, Masayoshi Mizuma, 2020/08/28
- [PATCH v2 4/7] qemu: Transient option gets avaiable for qcow2 and raw format disk, Masayoshi Mizuma, 2020/08/28
- [PATCH v2 3/7] qemu: Add transient disk handler to start and stop the guest, Masayoshi Mizuma, 2020/08/28
- [PATCH v2 7/7] qemu: Block blockjobs when transient disk option is enabled, Masayoshi Mizuma, 2020/08/28
- [PATCH v2 5/7] qemu: Block migration when transient disk option is enabled, Masayoshi Mizuma, 2020/08/28
- [PATCH v2 6/7] qemu: Block disk hotplug when transient disk option is enabled,
Masayoshi Mizuma <=
- Re: [PATCH v2 0/7] qemu: implementation of transient disk option, Ján Tomko, 2020/08/31