storage: Make the adapter name be consistent with node device driver

node device driver names the HBA like "scsi_host5", but storage
driver uses "host5", which could make the user confused. This
changes them to be consistent. However, for back-compat reason,
adapter name like "host5" is still supported.
This commit is contained in:
Osier Yang
2013-03-26 00:43:37 +08:00
parent 9f781da69d
commit c1f63a9bdf
2 changed files with 48 additions and 17 deletions

View File

@@ -97,11 +97,12 @@
<dt><code>adapter</code></dt>
<dd>Provides the source for pools backed by SCSI adapters. May
only occur once. Attribute <code>name</code> is the SCSI adapter
name (ex. "host1"). Attribute <code>type</code>
(<span class="since">1.0.5</span>) specifies the adapter type.
Valid values are "fc_host" and "scsi_host". If omitted and
the <code>name</code> attribute is specified, then it defaults to
"scsi_host". To keep backwards compatibility, the attribute
name (ex. "scsi_host1". NB, although a name such as "host1" is
still supported for backwards compatibility, it is not recommended).
Attribute <code>type</code> (<span class="since">1.0.5</span>)
specifies the adapter type. Valid values are "fc_host" and "scsi_host".
If omitted and the <code>name</code> attribute is specified, then it
defaults to "scsi_host". To keep backwards compatibility, the attribute
<code>type</code> is optional for the "scsi_host" adapter, but
mandatory for the "fc_host" adapter. Attributes <code>wwnn</code>
(Word Wide Node Name) and <code>wwpn</code> (Word Wide Port Name)