]> git.proxmox.com Git - mirror_qemu.git/commit
iscsi: Handle -iscsi user/password in bdrv_parse_filename()
authorKevin Wolf <kwolf@redhat.com>
Thu, 8 Dec 2016 13:23:07 +0000 (14:23 +0100)
committerJeff Cody <jcody@redhat.com>
Tue, 21 Feb 2017 15:36:57 +0000 (10:36 -0500)
commit4317142020921c6dcdcfda7a349a91088d969f14
treede4acfa4bdbec9348940a0897314156d4f803650
parentd5895fcb1de8f6de3cc63a413d7052b98091e191
iscsi: Handle -iscsi user/password in bdrv_parse_filename()

This splits the logic in the old parse_chap() function into a part that
parses the -iscsi options into the new driver-specific options, and
another part that actually applies those options (called apply_chap()
now).

Note that this means that username and password specified with -iscsi
only take effect when a URL is provided. This is intentional, -iscsi is
a legacy interface only supported for compatibility, new users should
use the proper driver-specific options.

Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/iscsi.c