|
|
26ba25 |
From 0cfbcb2d3641f4826b39d641852b026e6c349f8a Mon Sep 17 00:00:00 2001
|
|
|
26ba25 |
From: Markus Armbruster <armbru@redhat.com>
|
|
|
26ba25 |
Date: Mon, 18 Jun 2018 08:43:13 +0200
|
|
|
26ba25 |
Subject: [PATCH 015/268] rbd: Drop deprecated -drive parameter "filename"
|
|
|
26ba25 |
|
|
|
26ba25 |
RH-Author: Markus Armbruster <armbru@redhat.com>
|
|
|
26ba25 |
Message-id: <20180618084330.30009-7-armbru@redhat.com>
|
|
|
26ba25 |
Patchwork-id: 80735
|
|
|
26ba25 |
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH 06/23] rbd: Drop deprecated -drive parameter "filename"
|
|
|
26ba25 |
Bugzilla: 1557995
|
|
|
26ba25 |
RH-Acked-by: Max Reitz <mreitz@redhat.com>
|
|
|
26ba25 |
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
|
|
|
26ba25 |
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
26ba25 |
|
|
|
26ba25 |
Parameter "filename" is deprecated since commit 91589d9e5ca, v2.10.0.
|
|
|
26ba25 |
Time to get rid of it.
|
|
|
26ba25 |
|
|
|
26ba25 |
Signed-off-by: Markus Armbruster <armbru@redhat.com>
|
|
|
26ba25 |
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
26ba25 |
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
|
|
26ba25 |
(cherry picked from commit bb9f762ff35459e34630d731a5a91c02602150d1)
|
|
|
26ba25 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
26ba25 |
---
|
|
|
26ba25 |
block/rbd.c | 16 ----------------
|
|
|
26ba25 |
1 file changed, 16 deletions(-)
|
|
|
26ba25 |
|
|
|
26ba25 |
diff --git a/block/rbd.c b/block/rbd.c
|
|
|
26ba25 |
index a14b42f..2842c0e 100644
|
|
|
26ba25 |
--- a/block/rbd.c
|
|
|
26ba25 |
+++ b/block/rbd.c
|
|
|
26ba25 |
@@ -625,25 +625,9 @@ static int qemu_rbd_open(BlockDriverState *bs, QDict *options, int flags,
|
|
|
26ba25 |
QObject *crumpled = NULL;
|
|
|
26ba25 |
const QDictEntry *e;
|
|
|
26ba25 |
Error *local_err = NULL;
|
|
|
26ba25 |
- const char *filename;
|
|
|
26ba25 |
char *keypairs, *secretid;
|
|
|
26ba25 |
int r;
|
|
|
26ba25 |
|
|
|
26ba25 |
- /* If we are given a filename, parse the filename, with precedence given to
|
|
|
26ba25 |
- * filename encoded options */
|
|
|
26ba25 |
- filename = qdict_get_try_str(options, "filename");
|
|
|
26ba25 |
- if (filename) {
|
|
|
26ba25 |
- warn_report("'filename' option specified. "
|
|
|
26ba25 |
- "This is an unsupported option, and may be deprecated "
|
|
|
26ba25 |
- "in the future");
|
|
|
26ba25 |
- qemu_rbd_parse_filename(filename, options, &local_err);
|
|
|
26ba25 |
- qdict_del(options, "filename");
|
|
|
26ba25 |
- if (local_err) {
|
|
|
26ba25 |
- error_propagate(errp, local_err);
|
|
|
26ba25 |
- return -EINVAL;
|
|
|
26ba25 |
- }
|
|
|
26ba25 |
- }
|
|
|
26ba25 |
-
|
|
|
26ba25 |
keypairs = g_strdup(qdict_get_try_str(options, "=keyvalue-pairs"));
|
|
|
26ba25 |
if (keypairs) {
|
|
|
26ba25 |
qdict_del(options, "=keyvalue-pairs");
|
|
|
26ba25 |
--
|
|
|
26ba25 |
1.8.3.1
|
|
|
26ba25 |
|