From 8271ed2cda0f37ac48f9c691c593615cdec4eae5 Mon Sep 17 00:00:00 2001 From: "M. Mohan Kumar" Date: Tue, 19 Feb 2013 22:56:22 +0530 Subject: cli: Display option 'device vg' only when bd backend enabled Change-Id: If61c237948f51d48305f4897b3f226eead10bae8 BUG: 912997 Signed-off-by: M. Mohan Kumar Reviewed-on: http://review.gluster.org/4555 Reviewed-by: Vijay Bellur Tested-by: Gluster Build System --- cli/src/cli-cmd-volume.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cli/src/cli-cmd-volume.c') diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c index 4dcb99ce..80fe6975 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 [stripe ] [replica ] [device vg] [transport ] ...", + { "volume create [stripe ] [replica ] " +#ifdef HAVE_BD_XLATOR + "[device vg] " +#endif + "[transport ] ...", cli_cmd_volume_create_cbk, "create a new volume of specified type with mentioned bricks"}, -- cgit