1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00

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 <clalance@redhat.com>
This commit is contained in:
Chris Lalancette 2008-06-17 12:46:38 +00:00
parent a9e30eec59
commit 88dd6f6cc2

View File

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