render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
c1c534
From c6ff8d075d0fd4b2819d1c4858ad2c8e8c45c051 Mon Sep 17 00:00:00 2001
c1c534
Message-Id: <c6ff8d075d0fd4b2819d1c4858ad2c8e8c45c051@dist-git>
c1c534
From: Peter Krempa <pkrempa@redhat.com>
c1c534
Date: Thu, 14 Dec 2017 14:31:53 +0100
c1c534
Subject: [PATCH] qemu: domain: Parse and format relPath into disk source
c1c534
 private data
c1c534
c1c534
Register the helpers directly to format and parse the data.
c1c534
c1c534
https://bugzilla.redhat.com/show_bug.cgi?id=1523261
c1c534
(cherry picked from commit b3d0270c44b85944f91906225b27bca6700a6333)
c1c534
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
c1c534
---
c1c534
 src/qemu/qemu_domain.c | 2 ++
c1c534
 1 file changed, 2 insertions(+)
c1c534
c1c534
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
c1c534
index 625bcb20d5..8967f2774d 100644
c1c534
--- a/src/qemu/qemu_domain.c
c1c534
+++ b/src/qemu/qemu_domain.c
c1c534
@@ -2439,6 +2439,8 @@ virDomainXMLPrivateDataCallbacks virQEMUDriverPrivateDataCallbacks = {
c1c534
     .chrSourceNew = qemuDomainChrSourcePrivateNew,
c1c534
     .parse = qemuDomainObjPrivateXMLParse,
c1c534
     .format = qemuDomainObjPrivateXMLFormat,
c1c534
+    .storageParse = virStorageSourcePrivateDataParseRelPath,
c1c534
+    .storageFormat = virStorageSourcePrivateDataFormatRelPath,
c1c534
 };
c1c534
 
c1c534
 
c1c534
-- 
c1c534
2.15.1
c1c534