From: Elena Gryaznova Date: Wed, 21 Jul 2010 12:21:30 +0000 (+0400) Subject: b=23182 lustre-iokit sgpdd-survey defect X-Git-Tag: 2.0.0.51~15 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=05d1d540f8f1f71cdf8ec2721d5227234b8ca397;hp=062ecdedbd1d816cf75ed8e2b356f5aa34e03fa2 b=23182 lustre-iokit sgpdd-survey defect i=Vladimir.Saveliev --- diff --git a/lustre-iokit/sgpdd-survey/sgpdd-survey b/lustre-iokit/sgpdd-survey/sgpdd-survey index db40392..6d99457 100755 --- a/lustre-iokit/sgpdd-survey/sgpdd-survey +++ b/lustre-iokit/sgpdd-survey/sgpdd-survey @@ -65,7 +65,7 @@ if [ "$scsidevs" ]; then devs[$i]=`sg_map | awk "{if (\\\$2 == \"$d\") print \\\$1}"` if [ -z "${devs[i]}" ]; then echo "Can't find SG device for $d, testing for partition" - pt=`echo $d | sed 's/[0-9]$//'` + pt=`echo $d | sed 's/[0-9]*$//'` # Try again devs[$i]=`sg_map | awk "{if (\\\$2 == \"$pt\") print \\\$1}"` if [ -z "${devs[i]}" ]; then