At the moment, "rbd-wnbd" says that "help" is an unsupported command,
only "rbd-wnbd -h" works. This isn't very user friendly.
Although "rbd-wnbd" isn't supposed to be used directly in most cases,
users might want to retrieve device specific arguments that can be
passed using "rbd device -o".
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
--hard-disconnect Skip attempting a soft disconnect
--soft-disconnect-timeout Cummulative soft disconnect timeout in seconds,
used when disconnecting existing mappings. A hard
- disconnect will be issuedwhen hitting the timeout.
+ disconnect will be issued when hitting the timeout
--service-thread-count The number of workers used when mapping or
unmapping images. Default: 8
cmd = Service;
} else if (strcmp(*args.begin(), "stats") == 0) {
cmd = Stats;
+ } else if (strcmp(*args.begin(), "help") == 0) {
+ return HELP_INFO;
} else {
*err_msg << "rbd-wnbd: unknown command: " << *args.begin();
return -EINVAL;