cli: Display option 'device vg' only when bd backend enabled

Change-Id: If61c237948f51d48305f4897b3f226eead10bae8
BUG: 912997
Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com>
Reviewed-on: http://review.gluster.org/4555
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
This commit is contained in:
M. Mohan Kumar 2013-02-19 22:56:22 +05:30 committed by Anand Avati
parent 11be941ccc
commit 8271ed2cda

View File

@ -1795,7 +1795,11 @@ struct cli_cmd volume_cmds[] = {
cli_cmd_volume_info_cbk,
"list information of all volumes"},
{ "volume create <NEW-VOLNAME> [stripe <COUNT>] [replica <COUNT>] [device vg] [transport <tcp|rdma|tcp,rdma>] <NEW-BRICK> ...",
{ "volume create <NEW-VOLNAME> [stripe <COUNT>] [replica <COUNT>] "
#ifdef HAVE_BD_XLATOR
"[device vg] "
#endif
"[transport <tcp|rdma|tcp,rdma>] <NEW-BRICK> ...",
cli_cmd_volume_create_cbk,
"create a new volume of specified type with mentioned bricks"},