Alternatively:
sedpat="[0-9]\+[ \t]\+${OCF_RESKEY_pool}[ \t]\+${OCF_RESKEY_name}[ \t]\+${OCF_RESKEY_snap:--}[ \t]\+\(/dev/rbd[0-9]\+\).*"
Trims the whitespace as well.
Alternatively:
sedpat= "[0-9]\ +[ \t]\+${ OCF_RESKEY_ pool}[ \t]\+${ OCF_RESKEY_ name}[ \t]\+${ OCF_RESKEY_ snap:-- }[ \t]\+\( /dev/rbd[ 0-9]\+\ ).*"
Trims the whitespace as well.