|
|
218e99 |
From a434d825ab57df108ada2531d82e428f0b10e203 Mon Sep 17 00:00:00 2001
|
|
|
218e99 |
From: Laszlo Ersek <lersek@redhat.com>
|
|
|
218e99 |
Date: Thu, 31 Oct 2013 16:29:28 +0100
|
|
|
218e99 |
Subject: [PATCH 09/29] dump: qmp_dump_guest_memory(): use error_setg_file_open()
|
|
|
218e99 |
|
|
|
218e99 |
RH-Author: Laszlo Ersek <lersek@redhat.com>
|
|
|
218e99 |
Message-id: <1383236971-6067-6-git-send-email-lersek@redhat.com>
|
|
|
218e99 |
Patchwork-id: 55195
|
|
|
218e99 |
O-Subject: [RHEL-7 qemu-kvm PATCH 5/8] dump: qmp_dump_guest_memory(): use error_setg_file_open()
|
|
|
218e99 |
Bugzilla: 907743
|
|
|
218e99 |
RH-Acked-by: Luiz Capitulino <lcapitulino@redhat.com>
|
|
|
218e99 |
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
218e99 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
218e99 |
|
|
|
218e99 |
From: Luiz Capitulino <lcapitulino@redhat.com>
|
|
|
218e99 |
|
|
|
218e99 |
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
|
|
|
218e99 |
Acked-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
218e99 |
(cherry picked from commit 7581766b719afd63dcf922ddbf982291f596ed12)
|
|
|
218e99 |
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
218e99 |
---
|
|
|
218e99 |
dump.c | 2 +-
|
|
|
218e99 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
218e99 |
|
|
|
218e99 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
218e99 |
---
|
|
|
218e99 |
dump.c | 2 +-
|
|
|
218e99 |
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
218e99 |
|
|
|
218e99 |
diff --git a/dump.c b/dump.c
|
|
|
218e99 |
index 0523ad4..b203a8d 100644
|
|
|
218e99 |
--- a/dump.c
|
|
|
218e99 |
+++ b/dump.c
|
|
|
218e99 |
@@ -874,7 +874,7 @@ void qmp_dump_guest_memory(bool paging, const char *file, bool has_begin,
|
|
|
218e99 |
if (strstart(file, "file:", &p)) {
|
|
|
218e99 |
fd = qemu_open(p, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, S_IRUSR);
|
|
|
218e99 |
if (fd < 0) {
|
|
|
218e99 |
- error_set(errp, QERR_OPEN_FILE_FAILED, p);
|
|
|
218e99 |
+ error_setg_file_open(errp, errno, p);
|
|
|
218e99 |
return;
|
|
|
218e99 |
}
|
|
|
218e99 |
}
|
|
|
218e99 |
--
|
|
|
218e99 |
1.7.1
|
|
|
218e99 |
|