summaryrefslogtreecommitdiffstats
path: root/bash-completion/blockdev
diff options
context:
space:
mode:
authorKarel Zak2013-10-11 11:05:45 +0200
committerKarel Zak2013-10-11 11:05:45 +0200
commit39d2e7067d7c61e579079a72bbd80e3bce31cfc3 (patch)
treef6457bda9abff6ea5c171bc3d264cdbb55f7593c /bash-completion/blockdev
parentlibmount: fix mnt_context_is_child() comment (diff)
downloadkernel-qcow2-util-linux-39d2e7067d7c61e579079a72bbd80e3bce31cfc3.tar.gz
kernel-qcow2-util-linux-39d2e7067d7c61e579079a72bbd80e3bce31cfc3.tar.xz
kernel-qcow2-util-linux-39d2e7067d7c61e579079a72bbd80e3bce31cfc3.zip
Revert "blockdev: Remove the --setbsz (set blocksize) option which has never worked."
This reverts commit b1555acc2f709ac4f3b1e6c686a11cadb7b04f72. It seems that the option is used by kernel guys to test kernel, so let's keep the option in the blockdev(8) although it's almost useless in userspace. All we need is to improve docs to make things more obvious to end users. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'bash-completion/blockdev')
-rw-r--r--bash-completion/blockdev7
1 files changed, 6 insertions, 1 deletions
diff --git a/bash-completion/blockdev b/bash-completion/blockdev
index 588995562..ce986cb45 100644
--- a/bash-completion/blockdev
+++ b/bash-completion/blockdev
@@ -19,6 +19,7 @@ _blockdev_module()
--getalignoff
--getmaxsect
--getbsz
+ --setbsz
--getsize64
--setra
--getra
@@ -28,7 +29,11 @@ _blockdev_module()
--rereadpt
$DEVS"
case $prev in
- '--setfra')
+ '--setbsz')
+ COMPREPLY=( $(compgen -W "bytes" -- $cur) )
+ return 0
+ ;;
+ '--setbsz'|'--setfra')
COMPREPLY=( $(compgen -W "sectors" -- $cur) )
return 0
;;