Am 20.01.2012 09:58, schrieb ronnie sahlberg: > On Thu, Jan 19, 2012 at 11:17 PM, Kevin Wolf <kw...@redhat.com> wrote: >> Am 18.12.2011 05:48, schrieb Ronnie Sahlberg: >>> This patch adds configuration variables for iSCSI to set >>> initiator-name to use when logging in to the target, >>> which type of header-digest to negotiate with the target >>> and username and password for CHAP authentication. >>> >>> This allows specifying a initiator-name either from the command line >>> -iscsi initiator-name=iqn.2004-01.com.example:test >>> or from a configuration file included with -readconfig >>> [iscsi] >>> initiator-name = iqn.2004-01.com.example:test >>> header-digest = CRC32C|CRC32C-NONE|NONE-CRC32C|NONE >>> user = CHAP username >>> password = CHAP password >>> >>> The patch also updates the manpage and qemu-doc >>> >>> Signed-off-by: Ronnie Sahlberg <ronniesahlb...@gmail.com> >> >> So these options are global? What if I wanted to use two different >> setups for two different images? >> > > > Good point. > I will rework the patch so that it first checks for > [iscsi "iqn.target.name"] > and if that is not found it falls-back to just checking for [iscsi] > > That would allow to have one "catch all" section for all targets, but > also the possibility to override and use different settings on a > per-target basis. > > I will post an updated patch in a day or two.
Thanks, this sounds like a good solution. Kevin