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