]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
blkzone: add count option to bash-completion
authorKarel Zak <kzak@redhat.com>
Fri, 24 Feb 2017 11:05:13 +0000 (12:05 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 24 Feb 2017 11:05:13 +0000 (12:05 +0100)
and fix typo in man page

Signed-off-by: Karel Zak <kzak@redhat.com>
bash-completion/blkzone
sys-utils/blkzone.8

index d161cd0b8319ad78ca470b89eab3db5d1d4ecb7e..a50684df974fab236e6cc9bd2573d023535f3435 100755 (executable)
@@ -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"
index 983b04411cf026523a92e2cd17e5c0ef3a839e12..460950850936f26b5836f1f762e46e66bd7529ce 100644 (file)
@@ -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.