thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

Blame SOURCES/kvm-hostmem-file-remove-object-id-from-pmem-error-messag.patch

Pablo Greco e6a3ae
From 2968c04bb24aaca2d9b8b46a5f67fe7ee3abe7fa Mon Sep 17 00:00:00 2001
Pablo Greco e6a3ae
From: "plai@redhat.com" <plai@redhat.com>
Pablo Greco e6a3ae
Date: Thu, 11 Apr 2019 18:48:03 +0100
Pablo Greco e6a3ae
Subject: [PATCH 09/11] hostmem-file: remove object id from pmem error message
Pablo Greco e6a3ae
Pablo Greco e6a3ae
RH-Author: plai@redhat.com
Pablo Greco e6a3ae
Message-id: <1555008483-17720-1-git-send-email-plai@redhat.com>
Pablo Greco e6a3ae
Patchwork-id: 85563
Pablo Greco e6a3ae
O-Subject: [RHEL8.1 qemu-kvm PATCH ] hostmem-file: remove object id from pmem error message
Pablo Greco e6a3ae
Bugzilla: 1687596
Pablo Greco e6a3ae
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
Pablo Greco e6a3ae
RH-Acked-by: Pankaj Gupta <pagupta@redhat.com>
Pablo Greco e6a3ae
RH-Acked-by: Stefano Garzarella <sgarzare@redhat.com>
Pablo Greco e6a3ae
Pablo Greco e6a3ae
From: Zhang Yi <yi.z.zhang@linux.intel.com>
Pablo Greco e6a3ae
Pablo Greco e6a3ae
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1687596
Pablo Greco e6a3ae
Brew: http://brewweb.devel.redhat.com/brew/taskinfo?taskID=21121663
Pablo Greco e6a3ae
Branch: rhel-8.1.0
Pablo Greco e6a3ae
Pablo Greco e6a3ae
---
Pablo Greco e6a3ae
Pablo Greco e6a3ae
We will never get the canonical path from the object
Pablo Greco e6a3ae
before object_property_add_child.
Pablo Greco e6a3ae
Pablo Greco e6a3ae
Signed-off-by: Zhang Yi <yi.z.zhang@linux.intel.com>
Pablo Greco e6a3ae
Message-Id: <a6491f996827f4039c1a52198ed5dcc7727cb0f9.1540389255.git.yi.z.zhang@linux.intel.com>
Pablo Greco e6a3ae
[ehabkost: reword commit message]
Pablo Greco e6a3ae
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Pablo Greco e6a3ae
Pablo Greco e6a3ae
(cherry picked from commit 87dc3ce60a8a16b47aeb6c5f4dbc14ee975563df)
Pablo Greco e6a3ae
Signed-off-by: Paul Lai <plai@redhat.com>
Pablo Greco e6a3ae
Pablo Greco e6a3ae
Resovled Conflicts:
Pablo Greco e6a3ae
	backends/hostmem-file.c
Pablo Greco e6a3ae
Pablo Greco e6a3ae
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
Pablo Greco e6a3ae
---
Pablo Greco e6a3ae
 backends/hostmem-file.c | 10 ++++------
Pablo Greco e6a3ae
 1 file changed, 4 insertions(+), 6 deletions(-)
Pablo Greco e6a3ae
Pablo Greco e6a3ae
diff --git a/backends/hostmem-file.c b/backends/hostmem-file.c
Pablo Greco e6a3ae
index 2476dcb..4b667b7 100644
Pablo Greco e6a3ae
--- a/backends/hostmem-file.c
Pablo Greco e6a3ae
+++ b/backends/hostmem-file.c
Pablo Greco e6a3ae
@@ -145,9 +145,8 @@ static void file_memory_backend_set_pmem(Object *o, bool value, Error **errp)
Pablo Greco e6a3ae
     HostMemoryBackendFile *fb = MEMORY_BACKEND_FILE(o);
Pablo Greco e6a3ae
 
Pablo Greco e6a3ae
     if (host_memory_backend_mr_inited(backend)) {
Pablo Greco e6a3ae
-        error_setg(errp, "cannot change property 'pmem' of %s '%s'",
Pablo Greco e6a3ae
-                   object_get_typename(o),
Pablo Greco e6a3ae
-                   object_get_canonical_path_component(o));
Pablo Greco e6a3ae
+        error_setg(errp, "cannot change property 'pmem' of %s.",
Pablo Greco e6a3ae
+                   object_get_typename(o));
Pablo Greco e6a3ae
         return;
Pablo Greco e6a3ae
     }
Pablo Greco e6a3ae
 
Pablo Greco e6a3ae
@@ -156,9 +155,8 @@ static void file_memory_backend_set_pmem(Object *o, bool value, Error **errp)
Pablo Greco e6a3ae
         Error *local_err = NULL;
Pablo Greco e6a3ae
         error_setg(&local_err,
Pablo Greco e6a3ae
                    "Lack of libpmem support while setting the 'pmem=on'"
Pablo Greco e6a3ae
-                   " of %s '%s'. We can't ensure data persistence.",
Pablo Greco e6a3ae
-                   object_get_typename(o),
Pablo Greco e6a3ae
-                   object_get_canonical_path_component(o));
Pablo Greco e6a3ae
+                   " of %s. We can't ensure data persistence.",
Pablo Greco e6a3ae
+                   object_get_typename(o));
Pablo Greco e6a3ae
         error_propagate(errp, local_err);
Pablo Greco e6a3ae
         return;
Pablo Greco e6a3ae
     }
Pablo Greco e6a3ae
-- 
Pablo Greco e6a3ae
1.8.3.1
Pablo Greco e6a3ae