iscsi.c (235e59cf03ed75d0ce96c97343194ed11c146231) iscsi.c (af175e85f92c870386ad74f466e29537b79611d3)
1/*
2 * QEMU Block driver for iSCSI images
3 *
4 * Copyright (c) 2010-2011 Ronnie Sahlberg <ronniesahlberg@gmail.com>
5 * Copyright (c) 2012-2017 Peter Lieven <pl@kamp.de>
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 1778 unchanged lines hidden (view full) ---

1787 Error *local_err = NULL;
1788 const char *transport_name, *portal, *target;
1789#if LIBISCSI_API_VERSION >= (20160603)
1790 enum iscsi_transport_type transport;
1791#endif
1792 int i, ret = 0, timeout = 0, lun;
1793
1794 opts = qemu_opts_create(&runtime_opts, NULL, 0, &error_abort);
1/*
2 * QEMU Block driver for iSCSI images
3 *
4 * Copyright (c) 2010-2011 Ronnie Sahlberg <ronniesahlberg@gmail.com>
5 * Copyright (c) 2012-2017 Peter Lieven <pl@kamp.de>
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 1778 unchanged lines hidden (view full) ---

1787 Error *local_err = NULL;
1788 const char *transport_name, *portal, *target;
1789#if LIBISCSI_API_VERSION >= (20160603)
1790 enum iscsi_transport_type transport;
1791#endif
1792 int i, ret = 0, timeout = 0, lun;
1793
1794 opts = qemu_opts_create(&runtime_opts, NULL, 0, &error_abort);
1795 if (!qemu_opts_absorb_qdict(opts, options, &local_err)) {
1796 error_propagate(errp, local_err);
1795 if (!qemu_opts_absorb_qdict(opts, options, errp)) {
1797 ret = -EINVAL;
1798 goto out;
1799 }
1800
1801 transport_name = qemu_opt_get(opts, "transport");
1802 portal = qemu_opt_get(opts, "portal");
1803 target = qemu_opt_get(opts, "target");
1804 lun = qemu_opt_get_number(opts, "lun", 0);

--- 693 unchanged lines hidden ---
1796 ret = -EINVAL;
1797 goto out;
1798 }
1799
1800 transport_name = qemu_opt_get(opts, "transport");
1801 portal = qemu_opt_get(opts, "portal");
1802 target = qemu_opt_get(opts, "target");
1803 lun = qemu_opt_get_number(opts, "lun", 0);

--- 693 unchanged lines hidden ---