summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Grover <agrover@redhat.com>2014-05-02 11:23:59 -0700
committerAndy Grover <agrover@redhat.com>2014-05-05 12:01:14 -0700
commit3275ad59d471bd8c5cd9e29335a82b01dbc9abfa (patch)
treef30372469afdc3ad2d396089503e42e61030c22f
parenta34dfdfcf41746413d6d9b7af45651fb05785c3e (diff)
downloadrtslib-fb-3275ad59d471bd8c5cd9e29335a82b01dbc9abfa.tar.gz
'!' allowed character in block and partition names
See https://bugzilla.redhat.com/show_bug.cgi?id=1082208 Signed-off-by: Andy Grover <agrover@redhat.com>
-rw-r--r--rtslib/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtslib/utils.py b/rtslib/utils.py
index baae9e3..40c352c 100644
--- a/rtslib/utils.py
+++ b/rtslib/utils.py
@@ -127,7 +127,7 @@ def get_blockdev_size(path):
return get_size("/sys/block/%s" % name)
except IOError:
# Maybe it's a partition?
- m = re.search(r'^([a-z0-9_-]+)(\d+)$', name)
+ m = re.search(r'^([a-z0-9_-!]+)(\d+)$', name)
if m:
# If disk name ends with a digit, Linux sticks a 'p' between it and
# the partition number in the blockdev name.