1 Star 0 Fork 15

wangzhiqiang / sg3_utils

forked from src-openEuler / sg3_utils 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0004-sg3_utils-rescan-scsi-bus-list-all-LUNs-in-one-line.patch 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
linfeilong835 提交于 2022-07-23 18:19 . update version to 1.47
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
1
https://gitee.com/foolstrong/sg3_utils.git
git@gitee.com:foolstrong/sg3_utils.git
foolstrong
sg3_utils
sg3_utils
master

搜索帮助