diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2016-02-25 03:29:32 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2016-02-25 03:29:32 +0000 |
commit | 83415041e1e9a9b93e743069ca7600af31ddb839 (patch) | |
tree | 498682ef0e44ba82306bcbf32c360d37f9d76ac9 /scripts/scsi_satl | |
parent | c7006053b5ba2679ec2103e3e959703a71ecfcce (diff) | |
download | sg3_utils-83415041e1e9a9b93e743069ca7600af31ddb839.tar.gz |
shellcheck cleanup on scripts; add release tags; sg_timeout: show data-in with -vvv
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@679 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'scripts/scsi_satl')
-rwxr-xr-x | scripts/scsi_satl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/scsi_satl b/scripts/scsi_satl index 60994225..c79249bc 100755 --- a/scripts/scsi_satl +++ b/scripts/scsi_satl @@ -45,7 +45,7 @@ timeout=0 unit_attention=0 aborted_command=0 -total_err=0 +## total_err=0 usage() { @@ -83,19 +83,19 @@ for command in "sg_inq" "sg_vpd" "sg_vpd -p di" "sg_vpd -p ai" "sg_luns" \ "sg_sat_identify" do if [ $quiet -eq 0 ] - then echo "$command" $1 + then echo "$command" "$1" fi if [ $log -eq 0 ] then if [ $verbose ] then - $command $verbose $1 > /dev/null + $command $verbose "$1" > /dev/null else - $command $1 > /dev/null 2>> /dev/null + $command "$1" > /dev/null 2>> /dev/null fi else - $command $verbose $1 > /dev/null 2>> scsi_satl.err + $command $verbose "$1" > /dev/null 2>> scsi_satl.err fi res=$? case "$res" in @@ -109,7 +109,7 @@ do 11) echo " aborted command" ; let aborted_command=$aborted_command+1 ;; 15) echo " file error with $1 " ; let file_err=$file_err+1 ;; 20) echo " no sense" ; let other_err=$other_err+1 ;; - 21) echo " recovered error" ; let recovered_err=$recovered_err+1 ;; + 21) echo " recovered error" ; let recovered=$recovered+1 ;; 33) echo " timeout" ; let timeout=$timeout+1 ;; 97) echo " response fails sanity" ; let sanity=$sanity+1 ;; 98) echo " other SCSI error" ; let other_err=$other_err+1 ;; |