]> git.ipfire.org Git - thirdparty/libvirt.git/commit
node_device: introduce new capability FC_RPORT
authorBjoern Walk <bwalk@linux.vnet.ibm.com>
Mon, 22 May 2017 06:38:25 +0000 (08:38 +0200)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 26 May 2017 14:44:05 +0000 (10:44 -0400)
commitbb2adfe93476d0c1de2305a0baefd3520329682b
tree5839881b27eb270a40fa4e1758104ffec995e5ca
parentc47a3b130dd19317d1b94f975e442ab4bc569a55
node_device: introduce new capability FC_RPORT

Similar to scsi_host and fc_host, there is a relation between a
scsi_target and its transport specific fc_remote_port. Let's expose this
relation and relevant information behind it.

An example for a virsh nodedev-dumpxml:

    virsh # nodedev-dumpxml scsi_target0_0_0
    <device>
      <name>scsi_target0_0_0</name>
      <path>/sys/devices/[...]/host0/rport-0:0-0/target0:0:0</path>
      <parent>scsi_host0</parent>
      <capability type='scsi_target'>
        <target>target0:0:0</target>
        <capability type='fc_remote_port'>
          <rport>rport-0:0-0</rport>
          <wwpn>0x9d73bc45f0e21a86</wwpn>
        </capability>
      </capability>
    </device>

Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Signed-off-by: Bjoern Walk <bwalk@linux.vnet.ibm.com>
docs/schemas/nodedev.rng
src/conf/node_device_conf.c
src/conf/node_device_conf.h
src/node_device/node_device_driver.c
src/node_device/node_device_linux_sysfs.c
src/node_device/node_device_linux_sysfs.h
src/node_device/node_device_udev.c
tests/nodedevschemadata/scsi_target1_0_0.xml [new file with mode: 0644]
tests/nodedevxml2xmltest.c