!26 sg3_utils: rescan scsi bus list all LUNs in one line

Merge pull request !26 from liuzhiqiang/master
This commit is contained in:
openeuler-ci-bot 2022-01-29 07:50:42 +00:00 committed by Gitee
commit db922bfd22
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 59 additions and 1 deletions

View File

@ -0,0 +1,54 @@
From f61c42e6669abc9cbcf7c5e7c52a627e6717939b Mon Sep 17 00:00:00 2001
From: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Date: Sat, 29 Jan 2022 12:12:29 +0800
Subject: [PATCH] sg3_utils: rescan scsi bus list all LUNs in one line
fix issue: https://gitee.com/src-openeuler/sg3_utils/issues/I4RU82
rescan scsi bus list all LUNs in one line
before:
Scanning SCSI subsystem for new devices
Scanning host 0 for SCSI target IDs 0
1
2
3
4
5
6
7, all LUNs
Scanning for device 0 2 4 0 ...
after:
Scanning SCSI subsystem for new devices
Scanning host 0 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
Scanning for device 0 2 4 0 ...
Signed-off-by: wubo <wubo40@huawei.com>
Signed-off-by: yanglongkang <yanglongkang@huawei.com>
Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
---
scripts/rescan-scsi-bus.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/rescan-scsi-bus.sh b/scripts/rescan-scsi-bus.sh
index 46fe6c0..56cb9ed 100755
--- a/scripts/rescan-scsi-bus.sh
+++ b/scripts/rescan-scsi-bus.sh
@@ -1337,12 +1337,12 @@ else
[ -n "$channelsearch" ] && echo -n "channels $channelsearch "
echo -n "for "
if [ -n "$idsearch" ] ; then
- echo -n " SCSI target IDs $idsearch"
+ echo -n " SCSI target IDs" $idsearch
else
echo -n " all SCSI target IDs"
fi
if [ -n "$lunsearch" ] ; then
- echo ", LUNs $lunsearch"
+ echo ", LUNs" $lunsearch
else
echo ", all LUNs"
fi
--
1.8.3.1

View File

@ -1,6 +1,6 @@
Name: sg3_utils Name: sg3_utils
Version: 1.46 Version: 1.46
Release: 1 Release: 2
Summary: Utilities that send SCSI commands to devices. Summary: Utilities that send SCSI commands to devices.
License: GPL-2.0-or-later AND BSD License: GPL-2.0-or-later AND BSD
URL: http://sg.danny.cz/sg/sg3_utils.html URL: http://sg.danny.cz/sg/sg3_utils.html
@ -11,6 +11,7 @@ Patch1: 0001-sg3_utils-1.37-rescan-downpress.patch
Patch2: 0002-bugfix-sg3_utils-fix-syntax-error.patch Patch2: 0002-bugfix-sg3_utils-fix-syntax-error.patch
Patch3: 0003-sg3_utils-1.42-delete-lun-rescan-scsi-bus-report-error.patch Patch3: 0003-sg3_utils-1.42-delete-lun-rescan-scsi-bus-report-error.patch
Patch4: 0004-sg3_utils-fix-memset-coredump.patch Patch4: 0004-sg3_utils-fix-memset-coredump.patch
Patch5: 0005-sg3_utils-rescan-scsi-bus-list-all-LUNs-in-one-line.patch
Provides: %{name}-libs Provides: %{name}-libs
Obsoletes: %{name}-libs Obsoletes: %{name}-libs
@ -74,6 +75,9 @@ rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.la
%{_mandir}/man8/* %{_mandir}/man8/*
%changelog %changelog
* Sat Jan 29 2022 Zhiqiang Liu <liuzhiqiang26@huawei.com> -1.46-2
- rescan scsi bus list all LUNs in one line
* Thu Nov 25 2021 yanglongkang <yanglongkang@huawei.com> -1.46-1 * Thu Nov 25 2021 yanglongkang <yanglongkang@huawei.com> -1.46-1
- update to 1.46 - update to 1.46