From: cliffw Date: Tue, 24 Jul 2007 19:00:34 +0000 (+0000) Subject: bug=10851 X-Git-Tag: v1_7_91~131 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=ef3bcf3fc057b2f7d6bad258f01c07767d4cd821;p=fs%2Flustre-release.git bug=10851 i=scjody i=johann Fixes minor issues, verify is now an env var, defaulted off. Changes 'rm' to 'rm -f' --- diff --git a/lustre-iokit/obdfilter-survey/obdfilter-survey b/lustre-iokit/obdfilter-survey/obdfilter-survey index 90c6b0b..767437a 100755 --- a/lustre-iokit/obdfilter-survey/obdfilter-survey +++ b/lustre-iokit/obdfilter-survey/obdfilter-survey @@ -58,7 +58,7 @@ else fi # Set this true to check file contents -verify=0 +verify=${verify:-0} # total size (MBytes) per obd instance # large enough to avoid cache effects @@ -460,7 +460,7 @@ for ((rsz=$rszlo;rsz<=$rszhi;rsz*=2)); do echo "=============> Create $nobj on $client_name" >> $workf first_obj=`create_objects $host $devno $nobj $tmpf` cat $tmpf >> $workf - rm $tmpf + rm -f $tmpf if [ $first_obj = "ERROR" ]; then print_summary "created object #s on $client_name not contiguous" exit 1 @@ -514,7 +514,7 @@ for ((rsz=$rszlo;rsz<=$rszhi;rsz*=2)); do t1=`date +%s.%N` # clean up per-host script files for host in ${unique_hosts[@]}; do - rm ${cmdsf}_${host} + rm -f ${cmdsf}_${host} done # compute bandwidth from total data / elapsed time str=`awk "BEGIN {printf \"%7.2f \",\ @@ -530,13 +530,13 @@ for ((rsz=$rszlo;rsz<=$rszhi;rsz*=2)); do scp -q ${host}:$tmpfi $tmpfi > /dev/null cat $tmpfi >> $workf get_stats $tmpfi >> $tmpf - rm $tmpfi + rm -f $tmpfi done # compute/display global min/max stats echo "=============> $test global" >> $workf cat $tmpf >> $workf stats=(`get_global_stats $tmpf`) - rm $tmpf + rm -f $tmpf if ((stats[0] <= 0)); then if ((stats[0] < 0)); then str=`printf "%17s " ERROR` @@ -560,7 +560,7 @@ for ((rsz=$rszlo;rsz<=$rszhi;rsz*=2)); do echo "=============> Destroy $nobj on $client_name" >> $workf destroy_objects $host $devno $first_obj $nobj $tmpf cat $tmpf >> $workf - rm $tmpf + rm -f $tmpf done done done