forked from pool/s390-tools
Marcus Meissner
9b729e2acc
New package per "Factory first" policy. Please list me as bug owner and maintainer, if possible. OBS-URL: https://build.opensuse.org/request/show/459343 OBS-URL: https://build.opensuse.org/package/show/Base:System/s390-tools?expand=0&rev=1
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
Subject: lscss: allow to specify devices from ssid > 2
|
|
From: Sebastian Ott <sebott@linux.vnet.ibm.com>
|
|
|
|
Description: lscss: allow to specify devices from ssid > 2
|
|
Symptom: Specifying devices with ssid > 2 results in:
|
|
"Syntax error: 0.3.0000"
|
|
Problem: SSIDs > 2 are disallowed
|
|
Solution: allow SSIDs > 2
|
|
Reproduction: lscss 0.3.0000
|
|
Upstream-ID: -
|
|
Problem-ID: 150872
|
|
|
|
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
|
|
---
|
|
zconf/lscss | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/zconf/lscss
|
|
+++ b/zconf/lscss
|
|
@@ -61,7 +61,7 @@ SUBCHANNEL_TYPE_IO=0
|
|
SUBCHANNEL_TYPE_CHSC=1
|
|
SUBCHANNEL_TYPE_EADM=3
|
|
|
|
-IDFORMAT=[[:xdigit:]]*.[0-3].[[:xdigit:]][[:xdigit:]][[:xdigit:]][[:xdigit:]]
|
|
+IDFORMAT=[[:xdigit:]]*.[[:xdigit:]].[[:xdigit:]][[:xdigit:]][[:xdigit:]][[:xdigit:]]
|
|
|
|
unset SCH_IO SCH_CHSC SCH_EADM SHOW_AVAIL UPPERCASE SHORTID DEVTYPES DEVRANGE
|
|
unset RANGE SHOW_VPM
|
|
@@ -81,7 +81,7 @@ function check_id() #return 0 if $1 has
|
|
fi
|
|
;;
|
|
3)
|
|
- if [ ${#__ID[2]} != 4 -o ${#__ID[1]} != 1 -o "${__ID[1]//[012]/}" \
|
|
+ if [ ${#__ID[2]} != 4 -o ${#__ID[1]} != 1 \
|
|
-o \( ${#__ID[0]} != 2 -a ${#__ID[0]} != 1 \) ] ;then
|
|
return 1
|
|
fi
|