Bug 498426 - btrecord doesn't recognize --max-pkts and --max-packets cmd line options
Summary: btrecord doesn't recognize --max-pkts and --max-packets cmd line options
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: blktrace
Version: 5.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Eric Sandeen
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-30 13:09 UTC by Milos Malik
Modified: 2013-06-21 14:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 09:41:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2009:1284 0 normal SHIPPED_LIVE New package: blktrace 2009-09-01 09:51:07 UTC

Description Milos Malik 2009-04-30 13:09:45 UTC
Description of problem:
The usage message claims that btrecord supports command line option called --max-pkts . The man page claims that btrecord supports command line
option called --max-packets . Both of them are rejected by the utility. On the other hand the utility supports command line option called --max_pkts ('-' vs. '_' problem).

Version-Release number of selected component (if applicable):
blktrace-1.0.0-3.el5

How reproducible:
always

Steps to Reproduce:
# man btrecord | col -b | grep -A 1 -B 1 "max-packets"
       -M <num>
       --max-packets=<num>
              Set maximum number of packets per bunch.  The -M option requires
# btrecord --max-packets 2>&1 | head -n 2
btrecord: unrecognized option `--max-packets'
Usage: btrecord -- version 0.9.3
# btrecord --help 2>&1 | grep "max-pkts"
        [ -M <pkts> : --max-pkts=<pkts>       ] Default: 8
# btrecord --max-pkts 2>&1 | head -n 2
btrecord: unrecognized option `--max-pkts'
Usage: btrecord -- version 0.9.3
  
Actual results:
inconsistency between man page, usage message and the utility

Expected results:
modified man page and modified usage message

Additional info:

Comment 1 Eric Sandeen 2009-04-30 15:59:58 UTC
Thanks, sent a patch upstream to make things consistent on "--max-pkts" though maybe it'd be better to make the docs match the existing "--max_pkts" that the code accepts.... we'll see which one Jens prefers.

-Eric

Comment 6 Eric Sandeen 2009-05-13 22:54:05 UTC
Committed & built in blktrace-1.0.0-6.el5

Comment 8 Martin Kočí 2009-05-18 05:49:53 UTC
Patch committed by upstream. Qa acked for 5.4.

Comment 14 errata-xmlrpc 2009-09-02 09:41:09 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-1284.html


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