Fix vPort management: FC vHBA creation

When creating a virtual FC HBA with virsh/libvirt API, an error message
will be returned: "error: Node device not found",
also the 'nodedev-dumpxml' shows wrong information of wwpn & wwnn
for the new created device.

Signed-off-by: xschen@tnsoft.com.cn

This reverts f90af69 which switched wwpn & wwwn in the wrong place.

https://www.kernel.org/doc/Documentation/scsi/scsi_fc_transport.txt
(cherry picked from commit 3c0d5e224c71cd85b123cd938eeb360502503cb0)

Conflicts:
	src/storage/storage_backend_scsi.c
This commit is contained in:
Dennis Chen 2013-06-28 11:59:51 +02:00 committed by Ján Tomko
parent b81fad5ccc
commit 187ed9000d

View File

@ -3551,8 +3551,8 @@ virManageVport(const int parent_host,
if (virAsprintf(&vport_name, if (virAsprintf(&vport_name,
"%s:%s", "%s:%s",
wwnn, wwpn,
wwpn) < 0) { wwnn) < 0) {
virReportOOMError(); virReportOOMError();
goto cleanup; goto cleanup;
} }