Home | Trees | Indices | Help |
|
---|
|
Copyright (c) 2011 by RisingTide Systems LLC Copyright (c) 2013 by Andy Grover This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 (AGPLv3). This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. Description ----------- Instead of having a class to handle each fabric type, rtslib uses a single FabricModule class. An instance of FabricModule changes its behavior depending on parameters it picks up from here. These used to be listed in "spec" files, but are now here. Available parameters -------------------- * features Lists the target fabric available features. Default value: ("discovery_auth", "acls", "acls_auth", "nps") example: features = ("discovery_auth", "acls", "acls_auth") example: features = () # no features supported Detail of features: * tpgts The target fabric module is using iSCSI-style target portal group tags. * discovery_auth The target fabric module supports a fabric-wide authentication for discovery. * acls The target's TPGTs support explicit initiator ACLs. * acls_auth The target's TPGT's ACLs support per-ACL initiator authentication. * nps The TPGTs support iSCSI-like IPv4/IPv6 network portals, using IP:PORT group names. * nexus The TPGTs have a 'nexus' attribute that contains the local initiator serial unit. This attribute must be set before being able to create any LUNs. * wwn_type Sets the type of WWN expected by the target fabric. Defaults to 'free'. Example: wwn_type = "iqn" Current valid types are: * free Freeform WWN. * iqn The fabric module targets are using iSCSI-type IQNs. * naa NAA SAS address type WWN. * unit_serial Disk-type unit serial. * wwns() This function returns an iterable (either generator or list) of valid target WWNs for the fabric, if WWNs should be chosen from existing fabric interfaces. The most common case for this is hardware-set WWNs. This function should return a string with the WWN formatted for what the fabric module expects. * kernel_module Sets the name of the kernel module implementing the fabric modules. If not specified, it will be assumed to be MODNAME_target_mod, where MODNAME is the name of the fabric module, from the fabrics list. Note that you must not specify any .ko or such extension here. Example: kernel_module = "my_module" * configfs_group Sets the name of the configfs group used by the fabric module. Defaults to the name of the module from the fabrics list. Example: configfs_group = "iscsi"
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
_ib_srpt =
|
|||
_iscsi =
|
|||
_loopback =
|
|||
_qla2xxx =
|
|||
_sbp =
|
|||
_tcm_fc =
|
|||
_usb_gadget =
|
|||
fabrics =
|
|||
_default_features =
|
|||
_default_wwn_type =
|
|||
specs =
|
|||
__package__ =
|
|||
f_name =
|
|||
f_ovr =
|
|||
fabric =
|
|
_ib_srpt
|
_loopback
|
_qla2xxx
|
_sbp
|
_tcm_fc
|
_usb_gadget
|
fabrics
|
_default_features
|
specs
|
f_ovr
|
fabric
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Jan 7 23:51:48 2013 | http://epydoc.sourceforge.net |