X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre-iokit%2Fsgpdd-survey%2Fsgpdd-survey;h=6d99457593b5ddd258539996b0036216af98add1;hp=db40392f5a136bcc4768a73e74de870d468b079e;hb=05d1d540f8f1f71cdf8ec2721d5227234b8ca397;hpb=062ecdedbd1d816cf75ed8e2b356f5aa34e03fa2 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