Blame libvirt-storage-api-iscsi-sendtarget.patch
|
Chris Lalancette |
08b914 |
--- /home/boston/clalance/devel/libvirt--devel/src/storage_backend_iscsi.c 2008-02-13 13:48:32.497466000 -0500
|
|
Chris Lalancette |
08b914 |
+++ libvirt-0.4.0/src/storage_backend_iscsi.c 2008-02-11 17:19:35.000000000 -0500
|
|
Chris Lalancette |
08b914 |
@@ -143,6 +143,14 @@ static int virStorageBackendISCSIConnect
|
|
Chris Lalancette |
08b914 |
"--targetname", pool->def->source.devices[0].path, action, NULL
|
|
Chris Lalancette |
08b914 |
};
|
|
Chris Lalancette |
08b914 |
|
|
Chris Lalancette |
08b914 |
+ const char *cmdsendtarget[] = {
|
|
Chris Lalancette |
08b914 |
+ ISCSIADM, "--mode", "discovery", "--type", "sendtargets",
|
|
Chris Lalancette |
08b914 |
+ "--portal", portal, NULL
|
|
Chris Lalancette |
08b914 |
+ };
|
|
Chris Lalancette |
08b914 |
+
|
|
Chris Lalancette |
08b914 |
+ if (virRun(conn, (char **)cmdsendtarget, NULL) < 0)
|
|
Chris Lalancette |
08b914 |
+ return -1;
|
|
Chris Lalancette |
08b914 |
+
|
|
Chris Lalancette |
08b914 |
if (virRun(conn, (char **)cmdargv, NULL) < 0)
|
|
Chris Lalancette |
08b914 |
return -1;
|
|
Chris Lalancette |
08b914 |
|