render / rpms / libvirt

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