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

Class FileIOBackstore

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

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

Instance Methods [hide private]
 
__init__(self, index, mode='any')
Returns: A FileIOBackstore object.
 
storage_object(self, name, dev=None, size=None, gen_wwn=True, buffered_mode=False)
Same as FileIOStorageObject() without specifying the backstore

Inherited from Backstore: delete

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

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 lookuped or created.
    • 'lookup' the object MUST already exist configFS.
    • 'create' the object must NOT already exist in configFS.
Returns:
A FileIOBackstore object.
Overrides: object.__init__