|
|
218e99 |
From 1cb04a74ed9b2f4a05ac21ce1e9a5ca884c9b97e Mon Sep 17 00:00:00 2001
|
|
|
218e99 |
From: Laszlo Ersek <lersek@redhat.com>
|
|
|
218e99 |
Date: Thu, 31 Oct 2013 16:29:29 +0100
|
|
|
218e99 |
Subject: [PATCH 10/29] savevm: qmp_xen_save_devices_state(): use error_setg_file_open()
|
|
|
218e99 |
|
|
|
218e99 |
RH-Author: Laszlo Ersek <lersek@redhat.com>
|
|
|
218e99 |
Message-id: <1383236971-6067-7-git-send-email-lersek@redhat.com>
|
|
|
218e99 |
Patchwork-id: 55196
|
|
|
218e99 |
O-Subject: [RHEL-7 qemu-kvm PATCH 6/8] savevm: qmp_xen_save_devices_state(): 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 1befce9652a1b7cfca0191b3031fae3cbce26ef0)
|
|
|
218e99 |
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
218e99 |
---
|
|
|
218e99 |
savevm.c | 2 +-
|
|
|
218e99 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
218e99 |
|
|
|
218e99 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
218e99 |
---
|
|
|
218e99 |
savevm.c | 2 +-
|
|
|
218e99 |
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
218e99 |
|
|
|
218e99 |
diff --git a/savevm.c b/savevm.c
|
|
|
218e99 |
index d3bd0ec..1ed7f05 100644
|
|
|
218e99 |
--- a/savevm.c
|
|
|
218e99 |
+++ b/savevm.c
|
|
|
218e99 |
@@ -2419,7 +2419,7 @@ void qmp_xen_save_devices_state(const char *filename, Error **errp)
|
|
|
218e99 |
|
|
|
218e99 |
f = qemu_fopen(filename, "wb");
|
|
|
218e99 |
if (!f) {
|
|
|
218e99 |
- error_set(errp, QERR_OPEN_FILE_FAILED, filename);
|
|
|
218e99 |
+ error_setg_file_open(errp, errno, filename);
|
|
|
218e99 |
goto the_end;
|
|
|
218e99 |
}
|
|
|
218e99 |
ret = qemu_save_device_state(f);
|
|
|
218e99 |
--
|
|
|
218e99 |
1.7.1
|
|
|
218e99 |
|