Document the rbd showmapped cmd in rbd.usage(), and rbd's man page,
and add it to the bash completion script.
Signed-off-by: Stratos Psomadakis <psomas@grnet.gr>
.TP
.B \fBunmap\fP [\fIdevice\-path\fP]
Unmaps the block device that was mapped via the rbd kernel module.
+.TP
+.B \fBshowmapped\fP
+Show the rbd images that are mapped via the rbd kernel module.
.UNINDENT
.SH IMAGE NAME
.sp
return 0
;;
*)
- COMPREPLY=( $(compgen -W "ls list info create resize rm export import cp copy mv rename snap watch map unmap" -- ${cur}) )
+ COMPREPLY=( $(compgen -W "ls list info create resize rm export import cp copy mv rename snap watch map unmap showmapped" -- ${cur}) )
return 0
;;
esac
<< " using the kernel\n"
<< " unmap [device] unmap a rbd device that was\n"
<< " mapped by the kernel\n"
+ << " showmapped show the rbd images mapped\n"
+ << " by the kernel\n"
<< "\n"
<< "Other input options:\n"
<< " -p, --pool <pool> source pool name\n"