From 05d1d540f8f1f71cdf8ec2721d5227234b8ca397 Mon Sep 17 00:00:00 2001 From: Elena Gryaznova Date: Wed, 21 Jul 2010 16:21:30 +0400 Subject: [PATCH] b=23182 lustre-iokit sgpdd-survey defect i=Vladimir.Saveliev --- lustre-iokit/sgpdd-survey/sgpdd-survey | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.8.3.1