mirror of
https://github.com/ericonr/util-linux.git
synced 2024-04-21 09:12:35 -05:00
fdformat: Add --from, --to, and --repair options. Commit:e0402441a1
fdisk: Add --output [1], --bytes [2], --wipe [3], --wipe-partition [4], and remove --geom- from from --cylinders, --heads, --sector options [5]. Commit [1]:fff8ad5882
Commit [2]:354f8cc8cf
Commit [3]:cb9a4b0033
Commit [4]:ba465623d8
Commit [5]:4b4e391a28
fsck.cramfs: Broken since first commit. Commit:bf60993cf2
mkswap: Provide random uuid when completing --uuid argument. partx: Add --sector-size option. Fix also list of known partition types to match with libblkid blkid_idinfo names. The fix is also applied to manual page. Commit:f8a4a0d4f2
Reference: git grep -A 4 blkid_idinfo libblkid/src/partitions | grep name sfdisk: Add --reoder, --delete, --mode-dataa, -no-tell-kernel, --wipe, and --wipe-partitions options. In same go fix some option argument completions. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
30 lines
566 B
Plaintext
30 lines
566 B
Plaintext
_fdformat_module()
|
|
{
|
|
local cur prev OPTS
|
|
COMPREPLY=()
|
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
case $prev in
|
|
'-f'|'--from'|'-t'|'--to'|'-r'|'--repair')
|
|
COMPREPLY=( $(compgen -W "track_num" -- $cur) )
|
|
return 0
|
|
;;
|
|
'-h'|'--help'|'-V'|'--version')
|
|
return 0
|
|
;;
|
|
esac
|
|
DEVS=$(for I in echo /dev/fd*; do if [ -e $I ]; then echo $I; fi; done)
|
|
OPTS="
|
|
--from
|
|
--to
|
|
--repair
|
|
--no-verify
|
|
--help
|
|
--version
|
|
$DEVS
|
|
"
|
|
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
|
|
return 0
|
|
}
|
|
complete -F _fdformat_module fdformat
|