[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 4/7] qemu: Transient option gets avaiable for qcow2 and raw fo
From: |
Masayoshi Mizuma |
Subject: |
[PATCH v2 4/7] qemu: Transient option gets avaiable for qcow2 and raw format disk |
Date: |
Fri, 28 Aug 2020 10:08:33 -0400 |
From: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
Signed-off-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
---
src/qemu/qemu_validate.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c
index 488f258d00..82818a4fdc 100644
--- a/src/qemu/qemu_validate.c
+++ b/src/qemu/qemu_validate.c
@@ -2166,9 +2166,12 @@ qemuValidateDomainDeviceDefDiskFrontend(const
virDomainDiskDef *disk,
}
if (disk->transient) {
- virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
- _("transient disks not supported yet"));
- return -1;
+ if ((disk->src->format != VIR_STORAGE_FILE_QCOW2) &&
+ (disk->src->format != VIR_STORAGE_FILE_RAW)) {
+ virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
+ _("transient disks not supported yet"));
+ return -1;
+ }
}
if (disk->iomode == VIR_DOMAIN_DISK_IO_NATIVE &&
--
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 <=
- [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, 2020/08/28
- Re: [PATCH v2 0/7] qemu: implementation of transient disk option, Ján Tomko, 2020/08/31