Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 703374 - Long option --interface and --target do not work the same as short options
Long option --interface and --target do not work the same as short options
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: fcoe-utils (Show other bugs)
5.7
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Petr Šabata
Gris Ge
: Patch
Depends On:
Blocks: 700492
  Show dependency treegraph
 
Reported: 2011-05-10 04:18 EDT by Miroslav Vadkerti
Modified: 2012-02-21 01:09 EST (History)
1 user (show)

See Also:
Fixed In Version: fcoe-utils-1.0.7-5.el5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-02-21 01:09:19 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0230 normal SHIPPED_LIVE fcoe-utils package update 2012-02-20 10:07:47 EST

  None (edit)
Description Miroslav Vadkerti 2011-05-10 04:18:33 EDT
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 10:21:16 EDT
Created attachment 518500 [details]
Make target and interface short and long options work the same
Comment 3 Petr Šabata 2011-10-19 09:23:27 EDT
This should be fixed in fcoe-utils-1_0_7-5_el5
Comment 5 Gris Ge 2012-01-11 02:27:01 EST
fcoe-utils-1.0.7-5.el5 fixed this issue.

VERIFY.
Comment 6 errata-xmlrpc 2012-02-21 01:09:19 EST
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.