From 88dd6f6cc20721e8c267d0d8c72aaaea228f6ee0 Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Tue, 17 Jun 2008 12:46:38 +0000 Subject: [PATCH] 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. Signed-off-by: Chris Lalancette --- src/storage_backend_iscsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage_backend_iscsi.c b/src/storage_backend_iscsi.c index 96bb92774a..78a623cdbc 100644 --- a/src/storage_backend_iscsi.c +++ b/src/storage_backend_iscsi.c @@ -107,7 +107,7 @@ virStorageBackendISCSISession(virConnectPtr conn, 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(virConnectPtr conn, 2, }; const char *prog[] = { - ISCSIADM, "--mode", "session", "-P", "0", NULL + ISCSIADM, "--mode", "session", NULL }; char *session = NULL;