9119d9
From 4d07d05042b45aea07e2458021a88af24b3be225 Mon Sep 17 00:00:00 2001
9119d9
Message-Id: <4d07d05042b45aea07e2458021a88af24b3be225@dist-git>
9119d9
From: Wang Rui <moon.wangrui@huawei.com>
9119d9
Date: Tue, 25 Nov 2014 19:51:45 +0800
9119d9
Subject: [PATCH] qemu: add the missing jobinfo type in qemuDomainGetJobInfo
9119d9
9119d9
Commit 6fcddfcd refactored job statistics but missed the jobinfo type updated
9119d9
in qemuDomainGetJobInfo. After this patch, we can use virDomainGetJobInfo to
9119d9
get jobinfo type again.
9119d9
9119d9
https://bugzilla.redhat.com/show_bug.cgi?id=1167883
9119d9
9119d9
Signed-off-by: Wang Rui <moon.wangrui@huawei.com>
9119d9
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
9119d9
(cherry picked from commit 64b84911cecb82afa7ec08ce206eb1b71f76e04d)
9119d9
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
9119d9
---
9119d9
 src/qemu/qemu_domain.c | 1 +
9119d9
 1 file changed, 1 insertion(+)
9119d9
9119d9
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
9119d9
index f61593b..d248d5b 100644
9119d9
--- a/src/qemu/qemu_domain.c
9119d9
+++ b/src/qemu/qemu_domain.c
9119d9
@@ -258,6 +258,7 @@ int
9119d9
 qemuDomainJobInfoToInfo(qemuDomainJobInfoPtr jobInfo,
9119d9
                         virDomainJobInfoPtr info)
9119d9
 {
9119d9
+    info->type = jobInfo->type;
9119d9
     info->timeElapsed = jobInfo->timeElapsed;
9119d9
     info->timeRemaining = jobInfo->timeRemaining;
9119d9
 
9119d9
-- 
9119d9
2.1.3
9119d9