mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 01:43:23 +00:00
Make iSCSI login actually work
* src/storage_backend_iscsi.c: Make iSCSI login actually work (Chris Lalancette).
This commit is contained in:
parent
4d6a8a1c0a
commit
2a4c20437d
@ -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>
|
Tue Mar 4 19:57:00 UTC 2008 Richard W.M. Jones <rjones@redhat.com>
|
||||||
|
|
||||||
Report error when vcpupin is given bad vCPU number.
|
Report error when vcpupin is given bad vCPU number.
|
||||||
|
@ -151,6 +151,14 @@ virStorageBackendISCSIConnection(virConnectPtr conn,
|
|||||||
"--targetname", pool->def->source.devices[0].path, action, NULL
|
"--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)
|
if (virRun(conn, (char **)cmdargv, NULL) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user