|
|
9ae3a8 |
From 3b439999998f800a1a09d6bb779e9f3eef4f1eb9 Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Max Reitz <mreitz@redhat.com>
|
|
|
9ae3a8 |
Date: Wed, 22 Jul 2015 16:24:56 +0200
|
|
|
9ae3a8 |
Subject: [PATCH 4/5] block: Propagate error in bdrv_img_create()
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Message-id: <1437582297-9244-3-git-send-email-mreitz@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 67107
|
|
|
9ae3a8 |
O-Subject: [RHEL-7.2 qemu-kvm PATCH 2/3] block: Propagate error in bdrv_img_create()
|
|
|
9ae3a8 |
Bugzilla: 1238639
|
|
|
9ae3a8 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Fam Zheng <famz@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
If the specified backing file could not be opened, do not generate a new
|
|
|
9ae3a8 |
error message which contains the message which has been generated by
|
|
|
9ae3a8 |
bdrv_open(), but just propagate the latter.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Max Reitz <mreitz@redhat.com>
|
|
|
9ae3a8 |
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
9ae3a8 |
Reviewed-by: Peter Lieven <pl@kamp.de>
|
|
|
9ae3a8 |
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
9ae3a8 |
(cherry picked from commit e56934becea70817124be1534f4289ce7d8f6733)
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Conflicts:
|
|
|
9ae3a8 |
block.c
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
A conflict in the code being removed due to
|
|
|
9ae3a8 |
83d0521a1e35989b0cb7235aef48455fedda3ca4 missing downstream.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Max Reitz <mreitz@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
block.c | 5 -----
|
|
|
9ae3a8 |
1 file changed, 5 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/block.c b/block.c
|
|
|
9ae3a8 |
index dedfa52..bc6e75c 100644
|
|
|
9ae3a8 |
--- a/block.c
|
|
|
9ae3a8 |
+++ b/block.c
|
|
|
9ae3a8 |
@@ -5489,11 +5489,6 @@ void bdrv_img_create(const char *filename, const char *fmt,
|
|
|
9ae3a8 |
ret = bdrv_open(bs, backing_file->value.s, NULL, back_flags,
|
|
|
9ae3a8 |
backing_drv, &local_err);
|
|
|
9ae3a8 |
if (ret < 0) {
|
|
|
9ae3a8 |
- error_setg_errno(errp, -ret, "Could not open '%s': %s",
|
|
|
9ae3a8 |
- backing_file->value.s,
|
|
|
9ae3a8 |
- error_get_pretty(local_err));
|
|
|
9ae3a8 |
- error_free(local_err);
|
|
|
9ae3a8 |
- local_err = NULL;
|
|
|
9ae3a8 |
goto out;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
bdrv_get_geometry(bs, &size);
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.8.3.1
|
|
|
9ae3a8 |
|