Package rtslib :: Module tcm :: Class RDMCPBackstore

[hide private]
[frames] | no frames]

# Class RDMCPBackstore

      object --+
               |
    node.CFSNode --+
                   |
           Backstore --+
                       |
                      RDMCPBackstore

This is an interface to rd_mcp backstore plugin objects in configFS. A RDMCPBackstore object is identified by its backstore index.

Instance Methods | [hide private]

__init__(self, index, mode=`'``any``'`) Returns: A RDMCPBackstore object. |

storage_object(self, name, size=None, gen_wwn=True) Same as RDMCPStorageObject() without specifying the backstore |

Inherited from `Backstore`: `delete`

Inherited from `Backstore` (private): `_create_in_cfs_ine`, `_get_index`, `_get_name`, `_get_plugin`, `_get_version`, `_list_storage_objects`, `_parse_info`

Inherited from `node.CFSNode`: `__nonzero__`, `__str__`, `get_attribute`, `get_auth_attr`, `get_parameter`, `list_attributes`, `list_auth_attrs`, `list_parameters`, `set_attribute`, `set_auth_attr`, `set_parameter`

Inherited from `node.CFSNode` (private): `_check_self`, `_exists`, `_get_path`, `_is_fresh`, `_list_files`

Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Class Variables | [hide private]

Inherited from `node.CFSNode`: `alua_metadata_dir`, `configfs_dir`, `spec_dir`

Properties | [hide private]

Inherited from `Backstore`: `index`, `name`, `plugin`, `storage_objects`, `version` Inherited from `node.CFSNode`: `exists`, `is_fresh`, `path` Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, index, mode=`'``any``'`)
(Constructor)

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  - `index` (int) - The backstore index.
  - `mode` (string) - An optionnal string containing the object creation mode:
    - 'any' the configFS object will be either lookupd or created.
    - 'lookup' the object MUST already exist configFS.
    - 'create' the object must NOT already exist in configFS.
Returns:
  A RDMCPBackstore object.
Overrides: object.__init__