diff options
author | M. Mohan Kumar <mohan@in.ibm.com> | 2013-02-19 22:56:22 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-02-20 11:01:07 -0800 |
commit | 8271ed2cda0f37ac48f9c691c593615cdec4eae5 (patch) | |
tree | b13677613f7387765a6b2bc0e3db0f2941cd2835 /cli/src | |
parent | 11be941ccc2857514cf7b65552c84c20e27b99e1 (diff) |
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>
Diffstat (limited to 'cli/src')
-rw-r--r-- | cli/src/cli-cmd-volume.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c index 4dcb99ce26e..80fe697533a 100644 --- a/cli/src/cli-cmd-volume.c +++ b/cli/src/cli-cmd-volume.c @@ -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"}, |