From 830043212f4fccb66fde9066a2f5e2c5a5a6f501 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 24 Feb 2017 12:05:13 +0100 Subject: [PATCH] blkzone: add count option to bash-completion and fix typo in man page Signed-off-by: Karel Zak --- bash-completion/blkzone | 6 +++++- sys-utils/blkzone.8 | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bash-completion/blkzone b/bash-completion/blkzone index d161cd0b83..a50684df97 100755 --- a/bash-completion/blkzone +++ b/bash-completion/blkzone @@ -13,6 +13,10 @@ _blkzone_module() COMPREPLY=( $(compgen -W "size" -- $cur) ) return 0 ;; + '-c'|'--count') + COMPREPLY=( $(compgen -W "number" -- $cur) ) + return 0 + ;; '-h'|'--help'|'-V'|'--version') return 0 ;; @@ -21,7 +25,7 @@ _blkzone_module() -*) case $prev in 'report'|'reset') - OPTS="--verbose --offset --length" + OPTS="--verbose --offset --length --count" ;; *) OPTS="--help --version" diff --git a/sys-utils/blkzone.8 b/sys-utils/blkzone.8 index 983b04411c..4609508509 100644 --- a/sys-utils/blkzone.8 +++ b/sys-utils/blkzone.8 @@ -81,7 +81,7 @@ The maximum number of sectors the command should operate on. The default value is the number of sectors remaining after \fIoffset\fR. This option cannot be used together with the option \fB\-\-count\fP. .TP -.BR \-l , " \-\-count "\fIcount\fP +.BR \-c , " \-\-count "\fIcount\fP The maximum number of zones the command should operate on. The default value is the nuber of zones starting from \fIoffset\fR. This option cannot be used together with the option \fB\-\-length\fP. -- 2.47.2