Whamcloud - gitweb
Update based on lustre-iokit-20051107.tar.gz from the customer download area.
[fs/lustre-release.git] / lustre-iokit / sgpdd-survey / sgpdd-survey
index 135a87e..a46e92c 100755 (executable)
@@ -4,11 +4,11 @@
 # customize per survey
 
 # the SCSI devices to measure
-scsidevs=${scsidevs:-"/dev/sde /dev/sdh"}
+scsidevs="/dev/sde /dev/sdh"
 
 # result file prefix.  date/time+hostname makes unique
 # NB ensure the path exists if it includes subdirs
-rslt=${rslt:-"/tmp/sgpdd_survey_`date +%F@%R`_`uname -n`"}
+rslt=/tmp/sgpdd_survey_`date +%F@%R`_`uname -n`
 
 # what to do (read or write)
 actions="write read"
@@ -22,13 +22,13 @@ rszlo=1024
 rszhi=1024
 
 # Concurrent regions per device
-crglo=${crglo:-1}
-crghi=${crghi:-256}
+crglo=1
+crghi=256
 
 # threads to share between concurrent regions per device
 # NB survey skips over #thr < #regions and #thr/#regions > SG_MAX_QUEUE
-thrlo=${thrlo:-1}
-thrhi=${thrhi:-4096}
+thrlo=1
+thrhi=4096
 
 #####################################################################
 # leave the rest of this alone unless you know what you're doing...
@@ -43,7 +43,7 @@ i=0
 devs=()
 for d in $scsidevs; do
     devs[$i]=`sg_map | awk "{if ($ 2 == \"$d\") print $ 1}"`
-    if [ -z "${devs[$i]}" ]; then
+    if [ -z "$devs[$i]" ]; then
        echo "Can't find SG device for $d"
        exit 1
     fi