This is an interface to storage objects in configFS. A StorageObject
is identified by its backstore and its name.
|
|
|
|
|
__init__(self,
name,
mode,
index=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
|
|
|
|
| _configure(self,
wwn=None) |
|
|
|
|
|
|
|
|
|
|
_config_pr_aptpl(self)
LIO actually *writes* pr aptpl info to the filesystem, so we need to
read it in and squirt it back into configfs when we configure the
storage object. |
|
|
|
|
|
|
|
|
|
|
| _set_udev_path(self,
udev_path) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| _write_fd(self,
contents) |
|
|
|
|
|
|
|
|
|
|
|
|
|
_list_attached_luns(self)
Generates all luns attached to a storage object. |
|
|
|
|
_list_alua_tpgs(self)
Generate all ALUA groups attach to a storage object. |
|
|
|
|
_get_alua_supported(self)
Children should override if the backend did not always support ALUA |
|
|
|
|
delete(self,
save=False)
Recursively deletes a StorageObject object. |
|
|
|
|
is_configured(self)
Returns:
True if the StorageObject is configured, else returns False |
|
|
|
|
|
|
Inherited from node.CFSNode:
get_attribute,
get_parameter,
list_attributes,
list_parameters,
set_attribute,
set_parameter
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|
|
|
version = property(_get_version, doc= "Get the version of the ...
|
|
|
name = property(_get_name, doc= "Get the StorageObject name as...
|
|
|
udev_path = property(_get_udev_path, doc= "Get the StorageObje...
|
|
|
wwn = property(_get_wwn, _set_wwn, doc= "Get or set the Storag...
|
|
|
status = property(_get_status, doc= "Get the storage object st...
|
|
|
attached_luns = property(_list_attached_luns, doc= "Get the li...
|
|
|
alua_tpgs = property(_list_alua_tpgs, doc= "Get list of ALUA T...
|
|
|
alua_supported = property(_get_alua_supported, doc= "Returns t...
|
|
Inherited from node.CFSNode:
configfs_dir,
exists,
path
|