commit c41df30b17c7dfcabcd1e11737dee4cbce3fe1c9 Author: Ryan O'Hara <rohara@redhat.com> Date: Mon Nov 16 09:42:02 2009 -0600 CMAN: fix error in regular expression A previous commit had an error in the regular expression used to identify multipath devices built on partitions. rhbz#516625 diff --git a/fence/agents/scsi/scsi_reserve b/fence/agents/scsi/scsi_reserve index 31a1e17..4262fbc 100755 --- a/fence/agents/scsi/scsi_reserve +++ b/fence/agents/scsi/scsi_reserve @@ -110,7 +110,7 @@ do # if [[ $dm_uuid =~ "^mpath" ]]; then dm_devices="$dm_devices $( ls /sys/block/${pv_dev:5}/slaves/ )" - elif [[ $dm_uuid =~ "^part[0-9]-mpath" ]]; then + elif [[ $dm_uuid =~ "^part[0-9]*-mpath" ]]; then dm_slave=$( ls /sys/block/${pv_dev:5}/slaves/ ) dm_devices="$dm_devices $( ls /sys/block/${dm_slave}/slaves/ )" else