22 lines
603 B
Diff
22 lines
603 B
Diff
|
|
diff --git a/scripts/rescan-scsi-bus.sh b/scripts/rescan-scsi-bus.sh
|
||
|
|
index 9bfd3be..417dd1d 100755
|
||
|
|
--- a/scripts/rescan-scsi-bus.sh
|
||
|
|
+++ b/scripts/rescan-scsi-bus.sh
|
||
|
|
@@ -513,7 +513,7 @@ dolunscan()
|
||
|
|
printf "\r\e[A";
|
||
|
|
# Optimization: if lun==0, stop here (only if in non-remove mode)
|
||
|
|
if test x$lun = x0 -a -z "$remove" -a x$optscan = x1; then
|
||
|
|
- break;
|
||
|
|
+ return 1;
|
||
|
|
fi
|
||
|
|
else
|
||
|
|
if test "$remappedlun0" != "2" ; then
|
||
|
|
@@ -521,6 +521,7 @@ dolunscan()
|
||
|
|
fi
|
||
|
|
fi
|
||
|
|
fi
|
||
|
|
+ return 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
# Perform report lun scan on $host $channel $id using REPORT_LUNS
|