aboutsummaryrefslogtreecommitdiff
path: root/scripts/rescan-scsi-bus.sh
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2018-11-12 10:21:43 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2018-11-12 10:21:43 +0000
commitd6e191ba93e7188a95b6b4fd73dbfa9157dda3ac (patch)
treeb7922738087442890c4593eda919fd9bd47ab78c /scripts/rescan-scsi-bus.sh
parent01a118fb35301362b2139eff62d1e33e9b634ac9 (diff)
downloadsg3_utils-d6e191ba93e7188a95b6b4fd73dbfa9157dda3ac.tar.gz
sg_scan(win32): expand limits for big arrays; rescan-scsi-bus: widen LUN 0 only scanning; add SG_LIB_WINDOWS_ERR
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@795 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'scripts/rescan-scsi-bus.sh')
-rwxr-xr-xscripts/rescan-scsi-bus.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/rescan-scsi-bus.sh b/scripts/rescan-scsi-bus.sh
index 6989208a..a2aa8d81 100755
--- a/scripts/rescan-scsi-bus.sh
+++ b/scripts/rescan-scsi-bus.sh
@@ -376,7 +376,7 @@ idlist ()
oldlist=$(ls /sys/class/scsi_device/ | sed -n "s/${host}:${channel}:\([0-9]*:[0-9]*\)/\1/p" | uniq)
# Rescan LUN 0 to check if we found new targets
- echo "${channel} - 0" > /sys/class/scsi_host/host${host}/scan
+ echo "${channel} - -" > /sys/class/scsi_host/host${host}/scan
newlist=$(ls /sys/class/scsi_device/ | sed -n "s/${host}:${channel}:\([0-9]*:[0-9]*\)/\1/p" | uniq)
for newid in $newlist ; do
oldid=$newid