r=scjody@clusterfs.com
Fixed error with multiple scsidevs
# CHOOSE EITHER scsidevs or rawdevs
# the SCSI devices to measure - WARNING: will be erased.
# CHOOSE EITHER scsidevs or rawdevs
# the SCSI devices to measure - WARNING: will be erased.
-#scsidevs="/dev/sde /dev/sdh"
-#rawdevs="/dev/raw/raw1"
-#scsidevs=`ls /dev/sd[a-z] /dev/sd[a-z][a-z]` # all devices, if you use udev
+# rawdevs=${rawdevs:-"/dev/raw/raw1"}
+# scsidevs=`ls /dev/sd[a-z] /dev/sd[a-z][a-z]` # all devices, if you use udev
# result file prefix. date/time+hostname makes unique
# NB ensure the path exists if it includes subdirs
# result file prefix. date/time+hostname makes unique
# NB ensure the path exists if it includes subdirs
# map given device names into SG device names
i=0
devs=()
# map given device names into SG device names
i=0
devs=()
+if [ "$scsidevs" ]; then
# we will test for a LUN, the test for a partition
# if the partition number is > 9 this will fail
for d in $scsidevs; do
# we will test for a LUN, the test for a partition
# if the partition number is > 9 this will fail
for d in $scsidevs; do
+elif [ "$rawdevs" ]; then
for r in $rawdevs; do
RES=`raw -q $r`
if [ $? -eq 0 ];then
for r in $rawdevs; do
RES=`raw -q $r`
if [ $? -eq 0 ];then