2 # Ceph - scalable distributed file system
4 # Copyright (C) 2011 Wido den Hollander <wido@widodh.nl>
6 # This is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License version 2.1, as published by the Free Software
9 # Foundation. See file COPYING.
17 cur="${COMP_WORDS[COMP_CWORD]}"
18 prev="${COMP_WORDS[COMP_CWORD-1]}"
20 if [[ ${cur} == -* ]] ; then
21 COMPREPLY=( $(compgen -W "-c --conf -m -d -f -p --pool -b --snap -i -o --create" -- ${cur}) )
26 --conf | -c | -o | -i)
27 COMPREPLY=( $(compgen -f ${cur}) )
31 COMPREPLY=( $(compgen -A hostname ${cur}) )
35 COMPREPLY=( $(compgen -W "lspools mkpool rmpool df ls chown get put create rm listxattr getxattr setxattr rmxattr stat mapext lssnap mksnap rmsnap rollback bench" -- ${cur}) )
40 complete -F _rados rados