summaryrefslogtreecommitdiff
path: root/rtslib/utils.py
diff options
context:
space:
mode:
authorMike Christie <mchristi@redhat.com>2017-02-06 17:48:19 -0600
committerMike Christie <mchristi@redhat.com>2017-02-06 17:54:57 -0600
commit6bd910bd5530c9dfd0a768411beacef568b2f7d4 (patch)
tree5fd60cab6ae8313651907c652eec2482bc4f5bbd /rtslib/utils.py
parent572e9b41bae87023e5e5845786a15409246253aa (diff)
downloadrtslib-fb-6bd910bd5530c9dfd0a768411beacef568b2f7d4.tar.gz
Add ALUA supported method
Passthrough backends like pscsi and user do not support ALUA managment through configfs. You can create groups, but writing to files can cause the kernel crashes. This adds a alua_supported method that backends can override and return False to indicate they do not support ALUA. Signed-off-by: Mike Christie <mchristi@redhat.com>
Diffstat (limited to 'rtslib/utils.py')
-rw-r--r--rtslib/utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/rtslib/utils.py b/rtslib/utils.py
index 969d2d7..1a5315e 100644
--- a/rtslib/utils.py
+++ b/rtslib/utils.py
@@ -37,6 +37,12 @@ class RTSLibError(Exception):
'''
pass
+class RTSLibALUANotSupported(RTSLibError):
+ '''
+ Backend does not support ALUA.
+ '''
+ pass
+
class RTSLibBrokenLink(RTSLibError):
'''
Broken link in configfs, i.e. missing LUN storage object.