From: Richard W.M. Jones Date: Tue, 4 Mar 2008 20:02:34 +0000 (+0000) Subject: Make iSCSI login actually work X-Git-Tag: LIBVIRT_0_4_2~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a4c20437de52144b2a2396c436863ede6108a93;p=thirdparty%2Flibvirt.git Make iSCSI login actually work * src/storage_backend_iscsi.c: Make iSCSI login actually work (Chris Lalancette). --- diff --git a/ChangeLog b/ChangeLog index 78c8773106..b60e137c95 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Mar 4 20:01:00 UTC 2008 Richard W.M. Jones + + Make iSCSI login actually work + * src/storage_backend_iscsi.c: Make iSCSI login actually work + (Chris Lalancette). + Tue Mar 4 19:57:00 UTC 2008 Richard W.M. Jones Report error when vcpupin is given bad vCPU number. diff --git a/src/storage_backend_iscsi.c b/src/storage_backend_iscsi.c index fc79b46167..f34d43b91c 100644 --- a/src/storage_backend_iscsi.c +++ b/src/storage_backend_iscsi.c @@ -151,6 +151,14 @@ virStorageBackendISCSIConnection(virConnectPtr conn, "--targetname", pool->def->source.devices[0].path, action, NULL }; + const char *cmdsendtarget[] = { + ISCSIADM, "--mode", "discovery", "--type", "sendtargets", + "--portal", portal, NULL + }; + + if (virRun(conn, (char **)cmdsendtarget, NULL) < 0) + return -1; + if (virRun(conn, (char **)cmdargv, NULL) < 0) return -1;