[libvirt] [PATCH 3/5]: Fix up the call to iscsiadm --mode session

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Older versions of iscsiadm didn't support the "-P 0" flag to the "iscsiadm
--mode session" command.  However, just running "iscsiadm --mode session" seems
to work on all version of iscsiadm commands back to FC-6, so just use that.

Changes since last time:
None

Signed-off-by: Chris Lalancette <clalance@xxxxxxxxxx>

diff -urp libvirt.virLogCleanup/src/storage_backend_iscsi.c libvirt.session/src/storage_backend_iscsi.c
--- libvirt.virLogCleanup/src/storage_backend_iscsi.c	2008-06-16 14:24:40.000000000 +0200
+++ libvirt.session/src/storage_backend_iscsi.c	2008-06-16 14:33:13.000000000 +0200
@@ -107,7 +107,7 @@ virStorageBackendISCSISession(virConnect
                               virStoragePoolObjPtr pool)
 {
     /*
-     * # iscsiadm --mode session  -P 0
+     * # iscsiadm --mode session
      * tcp: [1] 192.168.122.170:3260,1 demo-tgt-b
      * tcp: [2] 192.168.122.170:3260,1 demo-tgt-a
      *
@@ -120,7 +120,7 @@ virStorageBackendISCSISession(virConnect
         2,
     };
     const char *prog[] = {
-        ISCSIADM, "--mode", "session", "-P", "0", NULL
+        ISCSIADM, "--mode", "session", NULL
     };
     char *session = NULL;
 

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]