Blame SOURCES/kvm-iscsi-Drop-deprecated-drive-parameter-filename.patch

383d26
From 975a41d8556024bed3fafc5118f084adf4cb391e Mon Sep 17 00:00:00 2001
383d26
From: Markus Armbruster <armbru@redhat.com>
383d26
Date: Mon, 18 Jun 2018 08:43:14 +0200
383d26
Subject: [PATCH 07/54] iscsi: Drop deprecated -drive parameter "filename"
383d26
383d26
RH-Author: Markus Armbruster <armbru@redhat.com>
383d26
Message-id: <20180618084330.30009-8-armbru@redhat.com>
383d26
Patchwork-id: 80740
383d26
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH 07/23] iscsi: Drop deprecated -drive parameter "filename"
383d26
Bugzilla: 1557995
383d26
RH-Acked-by: Max Reitz <mreitz@redhat.com>
383d26
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
383d26
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
383d26
383d26
Parameter "filename" is deprecated since commit 5c3ad1a6a8f, v2.10.0.
383d26
Time to get rid of it.
383d26
383d26
Signed-off-by: Markus Armbruster <armbru@redhat.com>
383d26
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
383d26
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
383d26
(cherry picked from commit deadbb8ebb5c253da9b8ed02ab51a0fadf60edc7)
383d26
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
383d26
---
383d26
 block/iscsi.c | 23 ++---------------------
383d26
 1 file changed, 2 insertions(+), 21 deletions(-)
383d26
383d26
diff --git a/block/iscsi.c b/block/iscsi.c
383d26
index d19ae0e..658462b 100644
383d26
--- a/block/iscsi.c
383d26
+++ b/block/iscsi.c
383d26
@@ -1732,10 +1732,6 @@ static QemuOptsList runtime_opts = {
383d26
             .name = "timeout",
383d26
             .type = QEMU_OPT_NUMBER,
383d26
         },
383d26
-        {
383d26
-            .name = "filename",
383d26
-            .type = QEMU_OPT_STRING,
383d26
-        },
383d26
         { /* end of list */ }
383d26
     },
383d26
 };
383d26
@@ -1751,27 +1747,12 @@ static int iscsi_open(BlockDriverState *bs, QDict *options, int flags,
383d26
     char *initiator_name = NULL;
383d26
     QemuOpts *opts;
383d26
     Error *local_err = NULL;
383d26
-    const char *transport_name, *portal, *target, *filename;
383d26
+    const char *transport_name, *portal, *target;
383d26
 #if LIBISCSI_API_VERSION >= (20160603)
383d26
     enum iscsi_transport_type transport;
383d26
 #endif
383d26
     int i, ret = 0, timeout = 0, lun;
383d26
 
383d26
-    /* If we are given a filename, parse the filename, with precedence given to
383d26
-     * filename encoded options */
383d26
-    filename = qdict_get_try_str(options, "filename");
383d26
-    if (filename) {
383d26
-        warn_report("'filename' option specified. "
383d26
-                    "This is an unsupported option, and may be deprecated "
383d26
-                    "in the future");
383d26
-        iscsi_parse_filename(filename, options, &local_err);
383d26
-        if (local_err) {
383d26
-            ret = -EINVAL;
383d26
-            error_propagate(errp, local_err);
383d26
-            goto exit;
383d26
-        }
383d26
-    }
383d26
-
383d26
     opts = qemu_opts_create(&runtime_opts, NULL, 0, &error_abort);
383d26
     qemu_opts_absorb_qdict(opts, options, &local_err);
383d26
     if (local_err) {
383d26
@@ -1989,7 +1970,7 @@ out:
383d26
         }
383d26
         memset(iscsilun, 0, sizeof(IscsiLun));
383d26
     }
383d26
-exit:
383d26
+
383d26
     return ret;
383d26
 }
383d26
 
383d26
-- 
383d26
1.8.3.1
383d26