From 6246beb119322f5a31872e26ec51652b7a0702b9 Mon Sep 17 00:00:00 2001 From: nic Date: Thu, 6 Oct 2005 18:13:00 +0000 Subject: [PATCH 1/1] allow vars to be overriden from the command line --- lustre-iokit/sgpdd-survey/sgpdd-survey | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lustre-iokit/sgpdd-survey/sgpdd-survey b/lustre-iokit/sgpdd-survey/sgpdd-survey index 52207f1..16709e3 100755 --- a/lustre-iokit/sgpdd-survey/sgpdd-survey +++ b/lustre-iokit/sgpdd-survey/sgpdd-survey @@ -4,11 +4,11 @@ # customize per survey # the SCSI devices to measure -scsidevs="/dev/sde /dev/sdh" +scsidevs=${scsidevs:-"/dev/sde /dev/sdh"} # result file prefix. date/time+hostname makes unique # NB ensure the path exists if it includes subdirs -rslt=/tmp/sgpdd_survey_`date +%F@%R`_`uname -n` +rslt=${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=1 -crghi=256 +crglo=${crglo:-1} +crghi=${crghi:-256} # threads to share between concurrent regions per device # NB survey skips over #thr < #regions and #thr/#regions > SG_MAX_QUEUE -thrlo=1 -thrhi=4096 +thrlo=${thrlo:-1} +thrhi=${thrhi:-4096} ##################################################################### # leave the rest of this alone unless you know what you're doing... @@ -144,4 +144,4 @@ for ((rsz=$rszlo;rsz<=$rszhi;rsz*=2)); do print_summary "" done done -done \ No newline at end of file +done -- 1.8.3.1