Bug 703374 - Long option --interface and --target do not work the same as short options
Summary: Long option --interface and --target do not work the same as short options
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: fcoe-utils
Version: 5.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Petr Šabata
QA Contact: Gris Ge
URL:
Whiteboard:
Depends On:
Blocks: 700492
TreeView+ depends on / blocked
 
Reported: 2011-05-10 08:18 UTC by Miroslav Vadkerti
Modified: 2012-02-21 06:09 UTC (History)
1 user (show)

Fixed In Version: fcoe-utils-1.0.7-5.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-21 06:09:19 UTC
Target Upstream Version:


Attachments (Terms of Use)
Make target and interface short and long options work the same (1.23 KB, patch)
2011-08-16 14:21 UTC, Petr Šabata
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0230 0 normal SHIPPED_LIVE fcoe-utils package update 2012-02-20 15:07:47 UTC

Description Miroslav Vadkerti 2011-05-10 08:18:33 UTC
Description of problem:
From the man page:
 -i, --interface <ethX>
 Show the information of the FCoE instances created at <ethX>.  If <ethX> is not specified the command will show the information of all the FCoE instances created on the system.

 -t, --target <ethX>
 Show  the  information  of all the discovered targets from the FCoE instances created at <ethX>.  If <ethX> is not specified the command will show the information of all the discovered targets from all the FCoE instances created.


The long options indeed need parameters and do not show info of all the FCoE instances created on the system


# fcoeadm -t
No FCoE interfaces created.
# fcoeadm --target
fcoeadm: option `--target' requires an argument
fcoeadm v1.0.7
Copyright (c) 2009, Intel Corporation.

Usage: fcoeadm
	 [-c|--create] <ethX>
	 [-d|--destroy] <ethX>
	 [-r|--reset] <ethX>
	 [-i|--interface] [<ethX>]
	 [-t|--target] [<ethX>]
	 [-l|--lun] [<target port_id> [<lun_id>]]
	 [-s|--stats] <ethX> [-n <interval>]
	 [-v|--version]
	 [-h|--help]

# fcoeadm -i
No FCoE interfaces created.
# fcoeadm --interface
fcoeadm: option `--interface' requires an argument
fcoeadm v1.0.7
Copyright (c) 2009, Intel Corporation.

Usage: fcoeadm
	 [-c|--create] <ethX>
	 [-d|--destroy] <ethX>
	 [-r|--reset] <ethX>
	 [-i|--interface] [<ethX>]
	 [-t|--target] [<ethX>]
	 [-l|--lun] [<target port_id> [<lun_id>]]
	 [-s|--stats] <ethX> [-n <interval>]
	 [-v|--version]
	 [-h|--help]


Version-Release number of selected component (if applicable):
fcoe-utils-1.0.7-4.el5

How reproducible:
100%

Steps to Reproduce:
1. fcoeadm -t
2. fcoeadm --target
3. fcoeadm -i
4. fcoeadm --interface
  
Actual results:
Not the same behavior

Expected results:
Long/short options behave same

Additional info:
Not an regression, proposing for EL5.8

Comment 2 Petr Šabata 2011-08-16 14:21:16 UTC
Created attachment 518500 [details]
Make target and interface short and long options work the same

Comment 3 Petr Šabata 2011-10-19 13:23:27 UTC
This should be fixed in fcoe-utils-1_0_7-5_el5

Comment 5 Gris Ge 2012-01-11 07:27:01 UTC
fcoe-utils-1.0.7-5.el5 fixed this issue.

VERIFY.

Comment 6 errata-xmlrpc 2012-02-21 06:09:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0230.html


Note You need to log in before you can comment on or make changes to this bug.