mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
virISCSIScanTargets: Honour iSCSI interface
When scanning for targets, iSCSI might give different results depending on the interface used. This is basically just name of config file under /etc/iscsi/ifaces to use. The file contains initiator IQN thus different results claim. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
@@ -145,7 +145,7 @@ testISCSIScanTargets(const void *data)
|
||||
|
||||
virCommandSetDryRun(NULL, testIscsiadmCb, NULL);
|
||||
|
||||
if (virISCSIScanTargets(info->portal, &ntargets, &targets) < 0)
|
||||
if (virISCSIScanTargets(info->portal, NULL, &ntargets, &targets) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (info->nexpected != ntargets) {
|
||||
|
||||
Reference in New Issue
Block a user