aboutsummaryrefslogtreecommitdiff
path: root/scripts/rescan-scsi-bus.sh
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2022-09-26 21:41:45 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2022-09-26 21:41:45 +0000
commit4215af6d171de0b80bdace8448a687970209cf15 (patch)
tree404f89bd0b463f030e38680e0471f19201bcf482 /scripts/rescan-scsi-bus.sh
parentccefa8190c1f38cb71384bcdd786599db7de570a (diff)
downloadsg3_utils-4215af6d171de0b80bdace8448a687970209cf15.tar.gz
rescan-scsi-bus.sh speed testonline()
speed testonline() function when peripheral_qualifier != 0 in the standard INQUIRY response. See: https://github.com/doug-gilbert/sg3_utils/issues/24 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@972 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'scripts/rescan-scsi-bus.sh')
-rwxr-xr-xscripts/rescan-scsi-bus.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/rescan-scsi-bus.sh b/scripts/rescan-scsi-bus.sh
index e9bccbac..f0105cf8 100755
--- a/scripts/rescan-scsi-bus.sh
+++ b/scripts/rescan-scsi-bus.sh
@@ -4,7 +4,7 @@
# (c) 2006--2022 Hannes Reinecke, GNU GPL v2 or later
# $Id: rescan-scsi-bus.sh,v 1.57 2012/03/31 14:08:48 garloff Exp $
-VERSION="20220811"
+VERSION="20220926"
SCAN_WILD_CARD=4294967295
setcolor ()
@@ -276,7 +276,7 @@ testonline ()
# Handle in progress of becoming ready and unit attention
while [ $RC = 2 -o $RC = 6 ] && [ $ctr -lt $timeout ] ; do
- if [ $RC = 2 ] && [ "$RMB" != "1" ] ; then
+ if [ $RC = 2 ] && [ "$RMB" != "1" ] && [ sg_inq /dev/$SGDEV | grep -q -i "PQual=0" ] ; then
echo -n "."
let LN+=1
sleep 1