Make iSCSI login actually work

* src/storage_backend_iscsi.c: Make iSCSI login actually work
	  (Chris Lalancette).
This commit is contained in:
Richard W.M. Jones 2008-03-04 20:02:34 +00:00
parent 4d6a8a1c0a
commit 2a4c20437d
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,9 @@
Tue Mar 4 20:01:00 UTC 2008 Richard W.M. Jones <rjones@redhat.com>
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 <rjones@redhat.com>
Report error when vcpupin is given bad vCPU number.

View File

@ -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;