diff options
author | M. Mohan Kumar <mohan@in.ibm.com> | 2012-11-29 21:46:07 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2012-11-29 09:39:53 -0800 |
commit | 3c72850e8d00f0cf35ae054136be076a394e08e9 (patch) | |
tree | 0763ec784c5e7da66b212cbe8bc1683a53663eae /rpc/rpc-lib | |
parent | ca796eba11a3f965bfbaa9bbffb5ef00c9bbb7ad (diff) |
BD Backend: CLI commands to create/delete image
Cli commands added to create/delete a LV device.
The following command creates lv in a given vg.
$ gluster bd create <volname>:<vgname>/<lvname> <size>
The following command deletes lv in a given vg.
$ gluster bd delete <volname>:<vgname>/<lvname>
BUG: 805138
Change-Id: Ie4e100eca14e2ee32cf2bb4dd064b17230d673bf
Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com>
Reviewed-on: http://review.gluster.org/3718
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'rpc/rpc-lib')
-rw-r--r-- | rpc/rpc-lib/src/protocol-common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rpc/rpc-lib/src/protocol-common.h b/rpc/rpc-lib/src/protocol-common.h index e4a783a7fbb..38528bd5f97 100644 --- a/rpc/rpc-lib/src/protocol-common.h +++ b/rpc/rpc-lib/src/protocol-common.h @@ -154,6 +154,7 @@ enum gluster_cli_procnum { GLUSTER_CLI_LIST_VOLUME, GLUSTER_CLI_CLRLOCKS_VOLUME, GLUSTER_CLI_UUID_RESET, + GLUSTER_CLI_BD_OP, GLUSTER_CLI_MAXVALUE, }; @@ -185,6 +186,7 @@ enum glusterd_brick_procnum { GLUSTERD_BRICK_XLATOR_DEFRAG, GLUSTERD_NODE_PROFILE, GLUSTERD_NODE_STATUS, + GLUSTERD_BRICK_BD_OP, GLUSTERD_BRICK_MAXVALUE, }; @@ -205,6 +207,12 @@ typedef enum { GF_AFR_OP_SPLIT_BRAIN_FILES } gf_xl_afr_op_t ; +typedef enum { + GF_BD_OP_INVALID, + GF_BD_OP_NEW_BD, + GF_BD_OP_DELETE_BD, +} gf_xl_bd_op_t ; + #define GLUSTER_HNDSK_PROGRAM 14398633 /* Completely random */ #define GLUSTER_HNDSK_VERSION 2 /* 0.0.2 */ |