Blame 0005-cms-cmssetup.sh-correct-port-for-zfcp.conf.patch
|
Harald Hoyer |
181ae5 |
From 64a7eace88b30f3ea03df86ddceb23d4949b692d Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
181ae5 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
181ae5 |
Date: Wed, 31 Jul 2013 17:28:04 +0200
|
|
Harald Hoyer |
181ae5 |
Subject: [PATCH] cms/cmssetup.sh: correct port for zfcp.conf
|
|
Harald Hoyer |
181ae5 |
|
|
Harald Hoyer |
181ae5 |
---
|
|
Harald Hoyer |
181ae5 |
modules.d/80cms/cmssetup.sh | 14 +++++++++++++-
|
|
Harald Hoyer |
181ae5 |
1 file changed, 13 insertions(+), 1 deletion(-)
|
|
Harald Hoyer |
181ae5 |
|
|
Harald Hoyer |
181ae5 |
diff --git a/modules.d/80cms/cmssetup.sh b/modules.d/80cms/cmssetup.sh
|
|
Harald Hoyer |
181ae5 |
index 16704c3..36955bc 100755
|
|
Harald Hoyer |
181ae5 |
--- a/modules.d/80cms/cmssetup.sh
|
|
Harald Hoyer |
181ae5 |
+++ b/modules.d/80cms/cmssetup.sh
|
|
Harald Hoyer |
181ae5 |
@@ -182,7 +182,19 @@ function dasd_settle_all() {
|
|
Harald Hoyer |
181ae5 |
|
|
Harald Hoyer |
181ae5 |
unset _do_zfcp
|
|
Harald Hoyer |
181ae5 |
for i in ${!FCP_*}; do
|
|
Harald Hoyer |
181ae5 |
- echo "${!i}" >> /etc/zfcp.conf
|
|
Harald Hoyer |
181ae5 |
+ echo "${!i}" | while read port rest; do
|
|
Harald Hoyer |
181ae5 |
+ case $port in
|
|
Harald Hoyer |
181ae5 |
+ *.*.*)
|
|
Harald Hoyer |
181ae5 |
+ ;;
|
|
Harald Hoyer |
181ae5 |
+ *.*)
|
|
Harald Hoyer |
181ae5 |
+ port="0.$port"
|
|
Harald Hoyer |
181ae5 |
+ ;;
|
|
Harald Hoyer |
181ae5 |
+ *)
|
|
Harald Hoyer |
181ae5 |
+ port="0.0.$port"
|
|
Harald Hoyer |
181ae5 |
+ ;;
|
|
Harald Hoyer |
181ae5 |
+ esac
|
|
Harald Hoyer |
181ae5 |
+ echo $port $rest >> /etc/zfcp.conf
|
|
Harald Hoyer |
181ae5 |
+ done
|
|
Harald Hoyer |
181ae5 |
_do_zfcp=1
|
|
Harald Hoyer |
181ae5 |
done
|
|
Harald Hoyer |
181ae5 |
[[ $_do_zfcp ]] && zfcp_cio_free
|