From 39d2e7067d7c61e579079a72bbd80e3bce31cfc3 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 11 Oct 2013 11:05:45 +0200 Subject: 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 --- bash-completion/blockdev | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bash-completion/blockdev') 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 ;; -- cgit v1.2.3-55-g7522