Skip to content

Commit deadbb8

Browse files
Markus Armbrusterkevmw
Markus Armbruster
authored andcommitted
iscsi: Drop deprecated -drive parameter "filename"
Parameter "filename" is deprecated since commit 5c3ad1a, v2.10.0. Time to get rid of it. Signed-off-by: Markus Armbruster <[email protected]> Reviewed-by: Kevin Wolf <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
1 parent bb9f762 commit deadbb8

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

block/iscsi.c

+2-21
Original file line numberDiff line numberDiff line change
@@ -1713,10 +1713,6 @@ static QemuOptsList runtime_opts = {
17131713
.name = "timeout",
17141714
.type = QEMU_OPT_NUMBER,
17151715
},
1716-
{
1717-
.name = "filename",
1718-
.type = QEMU_OPT_STRING,
1719-
},
17201716
{ /* end of list */ }
17211717
},
17221718
};
@@ -1756,27 +1752,12 @@ static int iscsi_open(BlockDriverState *bs, QDict *options, int flags,
17561752
char *initiator_name = NULL;
17571753
QemuOpts *opts;
17581754
Error *local_err = NULL;
1759-
const char *transport_name, *portal, *target, *filename;
1755+
const char *transport_name, *portal, *target;
17601756
#if LIBISCSI_API_VERSION >= (20160603)
17611757
enum iscsi_transport_type transport;
17621758
#endif
17631759
int i, ret = 0, timeout = 0, lun;
17641760

1765-
/* If we are given a filename, parse the filename, with precedence given to
1766-
* filename encoded options */
1767-
filename = qdict_get_try_str(options, "filename");
1768-
if (filename) {
1769-
warn_report("'filename' option specified. "
1770-
"This is an unsupported option, and may be deprecated "
1771-
"in the future");
1772-
iscsi_parse_filename(filename, options, &local_err);
1773-
if (local_err) {
1774-
ret = -EINVAL;
1775-
error_propagate(errp, local_err);
1776-
goto exit;
1777-
}
1778-
}
1779-
17801761
opts = qemu_opts_create(&runtime_opts, NULL, 0, &error_abort);
17811762
qemu_opts_absorb_qdict(opts, options, &local_err);
17821763
if (local_err) {
@@ -2006,7 +1987,7 @@ static int iscsi_open(BlockDriverState *bs, QDict *options, int flags,
20061987
}
20071988
memset(iscsilun, 0, sizeof(IscsiLun));
20081989
}
2009-
exit:
1990+
20101991
return ret;
20111992
}
20121993

0 commit comments

Comments
 (0)