summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ocf/rbd.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ocf/rbd.in b/src/ocf/rbd.in
index 041788d96fc..150ad6e6b21 100644
--- a/src/ocf/rbd.in
+++ b/src/ocf/rbd.in
@@ -134,7 +134,7 @@ find_rbd_dev() {
# Build the sed pattern, substituting "-" for the snapshot name if
# it's unset
- sedpat="[0-9]\+[ \t]\+${OCF_RESKEY_pool}[ \t]\+${OCF_RESKEY_name}[ \t]\+${OCF_RESKEY_snap:--}[ \t]\+\(/dev/rbd[0-9]\+\)"
+ sedpat="[0-9]\+[ \t]\+${OCF_RESKEY_pool}[ \t]\+${OCF_RESKEY_name}[ \t]\+${OCF_RESKEY_snap:--}[ \t]\+\(/dev/rbd[0-9]\+\).*"
# Run rbd showmapped, filter out the header line, then try to
# extract the device name