]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/scsi/scsi_transport_fc.c
[SCSI] fc transport: add fc_host system_hostname attribute and u64_to_wwn()
authorJames Smart <James.Smart@Emulex.Com>
Thu, 17 Aug 2006 12:00:43 +0000 (08:00 -0400)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sat, 19 Aug 2006 20:43:10 +0000 (13:43 -0700)
commitb8d08210126a7b769b857720a59721a453a57a1e
treed68487391ade14febcce5894e8e16d75e4224d4b
parentf3d7271c5ac9029d19fc0252a85bc045334382cc
[SCSI] fc transport: add fc_host system_hostname attribute and u64_to_wwn()

This patch updates the fc transport for the following:

- Addition of a new attribute "system_hostname" which can be
  used to set the fully qualified hostname that the fc_host
  is attached to. The fc_host can then register this string
  as the FDMI-based host name attribute.
  Note: for NPIV, a fc_host could be associated with a system which
    is not the local system.

- Add the inline function u64_to_wwn(), which is the inverse of the
  existing wwn_to_u64() function.

- Slight reorg, just to keep dynamic attributes with each other, etc

Signed-off-by: James Smart <James.Smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_transport_fc.c
include/scsi/scsi_transport_fc.h