Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 161070 Details for
Bug 251719
zfcpconf.sh should support 3 fields in zfcp.conf
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
zfcpconf.sh support for 3 or 5 values in /etc/zfcp.conf. Warn if using 5.
s390utils-zfcpconf.patch (text/plain), 1.34 KB, created by
Brad Hinson
on 2007-08-10 18:42:39 UTC
(
hide
)
Description:
zfcpconf.sh support for 3 or 5 values in /etc/zfcp.conf. Warn if using 5.
Filename:
MIME Type:
Creator:
Brad Hinson
Created:
2007-08-10 18:42:39 UTC
Size:
1.34 KB
patch
obsolete
>--- zfcpconf.sh.orig >+++ zfcpconf.sh >@@ -1,11 +1,11 @@ > #!/bin/bash > > # config file syntax: >-# deviceno SCSIID WWPN SCSILUN FCPLUN >+# deviceno WWPN FCPLUN > # > # Example: >-# 0.0.4000 0x01 0x5005076300C213E9 0x01 0x5022000000000000 >-# 0.0.4001 0x01 0x5005076300c213e9 0x01 0x5023000000000000 >+# 0.0.4000 0x5005076300C213e9 0x5022000000000000 >+# 0.0.4001 0x5005076300c213e9 0x5023000000000000 > # > # > # manual setup: >@@ -31,7 +31,14 @@ > if [ ! -d /sys/bus/ccw/drivers/zfcp ]; then > return > fi >- cat $CONFIG | grep -v "^#" | tr "A-Z" "a-z" | while read DEVICE SCSIID WWPN SCSILUN FCPLUN; do >+ cat $CONFIG | grep -v "^#" | tr "A-Z" "a-z" | while read line; do >+ numparams=$(echo $line | wc -w) >+ if [ $numparams == 5 ]; then >+ read DEVICE SCSIID WWPN SCSILUN FCPLUN < <(echo $line) >+ echo "Warning: Deprecated values in /etc/zfcp.conf, ignoring SCSI ID $SCSIID and SCSI LUN $SCSILUN" >+ elif [ $numparams == 3 ]; then >+ read DEVICE WWPN FCPLUN < <(echo $line) >+ fi > [ ! -d /sys/bus/ccw/drivers/zfcp/${DEVICE/0x/}/$WWPN ] && echo $WWPN > /sys/bus/ccw/drivers/zfcp/${DEVICE/0x/}/port_add > [ ! -d /sys/bus/ccw/drivers/zfcp/${DEVICE/0x/}/$WWPN/$FCPLUN ] && echo $FCPLUN > /sys/bus/ccw/drivers/zfcp/${DEVICE/0x/}/$WWPN/unit_add > echo 1 > /sys/bus/ccw/drivers/zfcp/${DEVICE/0x/}/online
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 251719
: 161070