[libvirt] [PATCH 06/14] qemu: domain: Forbid storage type 'cow' in qemu
Ján Tomko
jtomko at redhat.com
Sat Mar 31 11:56:04 UTC 2018
On Thu, Mar 29, 2018 at 01:51:03PM +0200, Peter Krempa wrote:
>QEMU does not support it so save us hassle and forbid it right away.
*the hassle
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/qemu/qemu_domain.c | 23 +++++++++++++++++++++++
> tests/qemuxml2argvdata/disk-drive-fmt-cow.xml | 27 +++++++++++++++++++++++++++
> tests/qemuxml2argvtest.c | 1 +
> 3 files changed, 51 insertions(+)
> create mode 100644 tests/qemuxml2argvdata/disk-drive-fmt-cow.xml
>
>diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
>index 009fb9daf3..960a78f082 100644
>--- a/src/qemu/qemu_domain.c
>+++ b/src/qemu/qemu_domain.c
>@@ -4108,9 +4108,24 @@ qemuDomainDeviceDefValidateVideo(const virDomainVideoDef *video)
> }
>
>
>+static int
>+qemuDomainValidateStorageSource(virStorageSourcePtr src)
>+{
>+ if (src->format == VIR_STORAGE_FILE_COW) {
>+ virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
>+ _("'cow' storage format is not supported"));
You could also say '🐄'.
>+ return -1;
>+ }
>+
>+ return 0;
>+}
>+
>+
ACK regardless
Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180331/0f9313fd/attachment-0001.sig>
More information about the libvir-list
mailing list