mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
lszfcp: new command line option for extended output format
Used in subsequent patches to guard their changes in order not to break any scripting or expectations around the lszfcp output format. Signed-off-by: Steffen Maier <maier@linux.ibm.com> Reviewed-by: Jens Remus <jremus@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
22a4d45e3b
commit
abf18cb711
+5
-2
@@ -18,6 +18,7 @@ SHOW_HOSTS=0
|
||||
SHOW_PORTS=0
|
||||
SHOW_DEVICES=0
|
||||
SHOW_ATTRIBUTES=false
|
||||
SHOW_EXTENDED=false
|
||||
unset PAR_BUSID PAR_WWPN PAR_LUN
|
||||
|
||||
|
||||
@@ -90,6 +91,7 @@ OPTIONS:
|
||||
-a, --attributes show all attributes
|
||||
-V, --verbose show sysfs paths of associated class
|
||||
and bus devices
|
||||
-e, --extended extended output format
|
||||
-s, --sysfs=PATH use path as sysfs (for dbginfo archives)
|
||||
-h, --help print this help
|
||||
-v, --version print version information
|
||||
@@ -290,8 +292,8 @@ show_devices()
|
||||
|
||||
##############################################################################
|
||||
|
||||
ARGS=`getopt --options ahvHPDVb:p:l:s: --longoptions \
|
||||
attributes,help,version,hosts,ports,devices,verbose,busid:,wwpn:,lun:,sysfs: \
|
||||
ARGS=`getopt --options ahvHPDVb:p:l:s:e --longoptions \
|
||||
attributes,help,version,hosts,ports,devices,verbose,busid:,wwpn:,lun:,sysfs:,extended \
|
||||
-n "$SCRIPTNAME" -- "$@"`
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
@@ -305,6 +307,7 @@ eval set -- "$ARGS"
|
||||
for ARG; do
|
||||
case "$ARG" in
|
||||
-a|--attributes) SHOW_ATTRIBUTES=true; shift 1;;
|
||||
-e|--extended) SHOW_EXTENDED=true; shift 1;;
|
||||
-b|--busid) PAR_BUSID=$2; shift 2;;
|
||||
-h|--help) print_help; exit 0;;
|
||||
-l|--lun) PAR_LUN=$2; shift 2;;
|
||||
|
||||
+6
-1
@@ -8,7 +8,7 @@ lszfcp \- list information about zfcp adapters, ports, and units
|
||||
|
||||
.SH SYNOPSIS
|
||||
.B lszfcp
|
||||
.RB [ \-hvVaHDP ]
|
||||
.RB [ \-hvVaHDPe ]
|
||||
.RB [ \-b
|
||||
.IR busid ]
|
||||
.RB [ \-l
|
||||
@@ -41,6 +41,8 @@ listed object.
|
||||
Option "-a" additionally shows all attributes of interest found in
|
||||
sysfs for the listed object.
|
||||
|
||||
Option "-e" enables an extended output format.
|
||||
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.B -a, --attributes
|
||||
@@ -69,6 +71,9 @@ List zfcp port(s) and FC remote port(s) selected by wwpn. (Information
|
||||
for several ports might be shown if a remote port is configured for
|
||||
different adapters.)
|
||||
.TP
|
||||
.B -e, --extended
|
||||
Generate extended output.
|
||||
.TP
|
||||
.B -V, --verbose
|
||||
Generate verbose output. Display sysfs path names of class and bus
|
||||
devices that are of interest for this object.
|
||||
|
||||
Reference in New Issue
Block a user