cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
9ae3a8
From c7a7d2970163c29da5445df54b0fabe28021b275 Mon Sep 17 00:00:00 2001
9ae3a8
From: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
Date: Wed, 27 May 2015 14:50:33 +0200
9ae3a8
Subject: [PATCH 7/8] Remove redhat extensions from qmp-events.txt
9ae3a8
9ae3a8
Message-id: <021c5d770a75ff1569b7a43a9a08553c9814214c.1432733950.git.mrezanin@redhat.com>
9ae3a8
Patchwork-id: 65136
9ae3a8
O-Subject: [RHEL-7.2 qemu-kvm PATCH 1/2] Remove redhat extensions from qmp-events.txt
9ae3a8
Bugzilla: 1222833
9ae3a8
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
9ae3a8
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
9ae3a8
9ae3a8
From: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
9ae3a8
We document __com.redhat_reason and __com.redhat_debug_info event members
9ae3a8
in qmp-events. We describe them as RHEL 7 extension. This is true for
9ae3a8
qemu-kvm pacakge only, qemu-kvm-rhev uses upstream solution.
9ae3a8
9ae3a8
Remove this fields from documentation so users do not expect them so they
9ae3a8
avoid issues on update to different version of qemu-kvm.
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 QMP/qmp-events.txt | 17 +----------------
9ae3a8
 1 file changed, 1 insertion(+), 16 deletions(-)
9ae3a8
9ae3a8
diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt
9ae3a8
index ec4e4b9..7d16a6d 100644
9ae3a8
--- a/QMP/qmp-events.txt
9ae3a8
+++ b/QMP/qmp-events.txt
9ae3a8
@@ -146,28 +146,13 @@ Data:
9ae3a8
     "ignore": error has been ignored, the job may fail later
9ae3a8
     "report": error will be reported and the job canceled
9ae3a8
     "stop": error caused job to be paused
9ae3a8
-- "__com.redhat_reason": error reason, this is a RHEL7 extension, it's one of
9ae3a8
-  the following (json-string):
9ae3a8
-    "eio": errno EIO
9ae3a8
-    "eperm": errno EPERM
9ae3a8
-    "enospc": errno ENOSPC
9ae3a8
-    "eother": any other errno (other than EIO, EPERM, ENOSPC)
9ae3a8
-- "__com.redhat_debug_info": RHEL7 extension containing debug information for
9ae3a8
-                             humans, applications should NOT read any
9ae3a8
-                             information from this member (json-object):
9ae3a8
-    - "errno": errno value (json-int)
9ae3a8
-    - "message": error message returned by strerror() (json-string)
9ae3a8
 
9ae3a8
 Example:
9ae3a8
 
9ae3a8
 { "event": "BLOCK_JOB_ERROR",
9ae3a8
     "data": { "device": "ide0-hd1",
9ae3a8
               "operation": "write",
9ae3a8
-              "action": "stop",
9ae3a8
-              "__com.redhat_reason": "enospc",
9ae3a8
-              "__com.redhat_debug_info": {
9ae3a8
-                  "message": "No space left on device",
9ae3a8
-                  "errno": 28 } }
9ae3a8
+              "action": "stop" },
9ae3a8
     "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
9ae3a8
 
9ae3a8
 BLOCK_JOB_READY
9ae3a8
-- 
9ae3a8
1.8.3.1
9ae3a8