Package rtslib :: Module tcm :: Class Backstore
[hide private]
[frames] | no frames]

Class Backstore

  object --+    
           |    
node.CFSNode --+
               |
              Backstore
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, plugin, storage_class, index, mode)
x.__init__(...) initializes x; see help(type(x)) for signature
 
_get_index(self)
 
_list_storage_objects(self)
 
_create_in_cfs_ine(self, mode)
Creates the configFS node if it does not already exists depending on the mode.
 
_parse_info(self, key)
 
_get_version(self)
 
_get_plugin(self)
 
_get_name(self)
 
delete(self)
Recursively deletes a Backstore object.

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 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]
  index
Get the backstore index as an int.
  storage_objects
Get the list of StorageObjects attached to the backstore.
  version
Get the Backstore plugin version string.
  plugin
Get the Backstore plugin name.
  name
Get the backstore name.

Inherited from node.CFSNode: exists, is_fresh, path

Inherited from object: __class__

Method Details [hide private]

__init__(self, plugin, storage_class, index, mode)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)

_create_in_cfs_ine(self, mode)

 

Creates the configFS node if it does not already exists depending on the mode. any -> makes sure it exists, also works if the node already does exists lookup -> make sure it does NOT exists create -> create the node which must not exists beforehand Upon success (no exception raised), self._fresh is True if a node was created, else self._fresh is False.

Overrides: node.CFSNode._create_in_cfs_ine
(inherited documentation)

delete(self)

 

Recursively deletes a Backstore object. This will delete all attached StorageObject objects, and then the Backstore itself. The underlying file and block storages will not be touched, but all ramdisk data will be lost.

Overrides: node.CFSNode.delete

Property Details [hide private]

index

Get the backstore index as an int.

Get Method:
_get_index(self)

storage_objects

Get the list of StorageObjects attached to the backstore.

Get Method:
_list_storage_objects(self)

version

Get the Backstore plugin version string.

Get Method:
_get_version(self)

plugin

Get the Backstore plugin name.

Get Method:
_get_plugin(self)

name

Get the backstore name.

Get Method:
_get_name(self)