summaryrefslogtreecommitdiffstats
path: root/bash-completion
diff options
context:
space:
mode:
authorRodrigo Campos2014-01-26 16:06:50 +0100
committerKarel Zak2014-02-14 11:31:12 +0100
commit24b2a479fd5ba138e9b836fa2115939eb3b59dfe (patch)
tree59739edae84554396409a96a35b292e6ad274f10 /bash-completion
parentfallocate: Hide #ifdef tricks to call fallocate in a function (diff)
downloadkernel-qcow2-util-linux-24b2a479fd5ba138e9b836fa2115939eb3b59dfe.tar.gz
kernel-qcow2-util-linux-24b2a479fd5ba138e9b836fa2115939eb3b59dfe.tar.xz
kernel-qcow2-util-linux-24b2a479fd5ba138e9b836fa2115939eb3b59dfe.zip
fallocate: Add "--dig-holes" option
This option tries to detect chunk of '\0's and punch a hole, making the file sparse in-place. [kzak@redhat.com: - fix coding style, use xalloc.h and err.h] Signed-off-by: Rodrigo Campos <rodrigo@sdfg.com.ar> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'bash-completion')
-rw-r--r--bash-completion/fallocate2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash-completion/fallocate b/bash-completion/fallocate
index 2c6e4cbae..ce5f4f14c 100644
--- a/bash-completion/fallocate
+++ b/bash-completion/fallocate
@@ -15,7 +15,7 @@ _fallocate_module()
esac
case $cur in
-*)
- OPTS="--keep-size --punch-hole --offset --length --help --version"
+ OPTS="--keep-size --punch-hole --dig-holes --offset --length --help --version"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
;;