Description of problem: btrace script contains an getopt call: while getopts "a:r:stSw:hv" c If the man page is correct about supported command line options, the getopt call should like this way: while getopts "a:b:n:r:stSw:hv" c Version-Release number of selected component (if applicable): blktrace-1.0.0-3 How reproducible: always Steps to Reproduce: # man btrace | col -b | grep -- "-b " Usage: btrace [-s] [-t] [-w N] [-n N] [-b N] [-a <trace>...] <dev>... -b N Specifies buffer size for event extraction (scaled by 1024) (see # man btrace | col -b | grep -- "-n " Usage: btrace [-s] [-t] [-w N] [-n N] [-b N] [-a <trace>...] <dev>... -n N Specifies the number of buffers to use (see blktrace (8)). # /usr/bin/btrace -n /usr/bin/btrace: illegal option -- n Usage: btrace [-s] [-t] [-S] [-w N] [-a <trace>...] [-r <dbg mnt]<dev>... # /usr/bin/btrace -b /usr/bin/btrace: illegal option -- b Usage: btrace [-s] [-t] [-S] [-w N] [-a <trace>...] [-r <dbg mnt]<dev>... Actual results: not all supported options are mentioned in the getopt call Expected results: all supported options are mentioned in the getopt call
# btrace Usage: btrace [-s] [-t] [-S] [-w N] [-a <trace>...] [-r <dbg mnt] <dev>... I'm wondering what's the meaning of "-S" option. The script does not react when it's present on the command line and the man page does not talk about it.
Patch sent upstream, thanks. http://marc.info/?l=linux-btrace&m=124146968616948&w=2
http://git.kernel.dk/?p=blktrace.git;a=commitdiff;h=bc93336f08a3773cdc8d88eda035346e3896fa29
Committed & built in blktrace-1.0.0-6.el5
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