[libvirt] [PATCH 06/11] Allow iSCSI IQN to be set with find-storage-pool-sources-as command
Eric Blake
eblake at redhat.com
Fri Nov 19 18:20:33 UTC 2010
On 11/12/2010 09:22 AM, Daniel P. Berrange wrote:
> Allow an iSCSI initiator IQN to be set with the XML for the
> find-storage-pool-sources-as virsh command
>
> * tools/virsh.c: Add iSCSI IQN support
> ---
> tools/virsh.c | 10 ++++++++++
> 1 files changed, 10 insertions(+), 0 deletions(-)
>
> @@ -5782,6 +5787,11 @@ cmdPoolDiscoverSourcesAs(vshControl * ctl, const vshCmd * cmd ATTRIBUTE_UNUSED)
> if (port)
> virBufferVSprintf(&buf, " port='%s'", port);
> virBufferAddLit(&buf, "/>\n");
> + if (initiator) {
> + virBufferAddLit(&buf, " <initiator>\n");
> + virBufferVSprintf(&buf, " <iqn name='%s'/>\n", initiator);
> + virBufferAddLit(&buf, " </initiator>\n");
> + }
Yep, answering my own question on patch 5/11, you stuck something in the
middle.
ACK.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101119/52dcdc1a/attachment-0001.sig>
More information about the libvir-list
mailing list