From bd010edaffe86f673276a2b31215b596d217dbec Mon Sep 17 00:00:00 2001 From: Elena Gryaznova Date: Fri, 25 Jun 2010 16:38:17 +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