7c9ef8f1f7
- Update to new upstream release 1.37 * sg_compare_and_write: add --quiet option to suppress miscompare report * sg_persist: fix core dump on -Q option * sg_unmap: fix core dump on -g option * sg_ses: add --nickname and --nickid options - Remove sg3_utils-Fixup-T10-Vendor-designator-display.patch (merged upstream) OBS-URL: https://build.opensuse.org/request/show/205656 OBS-URL: https://build.opensuse.org/package/show/Base:System/sg3_utils?expand=0&rev=31
24 lines
874 B
Diff
24 lines
874 B
Diff
From: ohering@suse.de
|
|
Date: 2013-08-25 18:45:14 +0200
|
|
References: http://bugzilla.novell.com/780946
|
|
|
|
(was originally marked to fix an upstream issue, but no description
|
|
was provided)
|
|
|
|
Index: sg3_utils-1.35/scripts/rescan-scsi-bus.sh
|
|
===================================================================
|
|
--- sg3_utils-1.35.orig/scripts/rescan-scsi-bus.sh
|
|
+++ sg3_utils-1.35/scripts/rescan-scsi-bus.sh
|
|
@@ -750,8 +750,9 @@ for host in $hosts; do
|
|
echo -n "Scanning host $host "
|
|
if test -e /sys/class/fc_host/host$host ; then
|
|
# It's pointless to do a target scan on FC
|
|
- if test -n "$lipreset" ; then
|
|
- echo 1 > /sys/class/fc_host/host$host/issue_lip 2> /dev/null;
|
|
+ issue_lip=/sys/class/fc_host/host$host/issue_lip
|
|
+ if test -e $issue_lip -a -n "$lipreset" ; then
|
|
+ echo 1 > $issue_lip 2> /dev/null;
|
|
udevadm_settle
|
|
fi
|
|
channelsearch=
|