summaryrefslogtreecommitdiffstats
path: root/rpc/rpcl
diff options
context:
space:
mode:
authorPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2017-02-05 20:23:20 +0530
committerPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2017-02-07 13:29:05 +0530
commit23b12455796ec453ca35e94ab49e7629d7f9aced (patch)
tree0d69ce51ad68b56a753fa8e4a021bec2a3cc5f4a /rpc/rpcl
parentbbcbaf494ad406ceea4f0175b91cf67966d32a27 (diff)
gluster-block: migrate build to libtoolz and create rpm
Till now we had simple makefile for checking dependencies and building. Using libtoolz will give more control on dependency checks and flexibility. This patch also introduce rpm build feature. Compiling: $ ./autogen.sh $ ./configure $ make -j $ make install Building RPMS: $ make rpms Running: $ systemctl start gluster-blockd.service Using CLI: $ gluster-block help Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'rpc/rpcl')
-rw-r--r--rpc/rpcl/block.x59
1 files changed, 59 insertions, 0 deletions
diff --git a/rpc/rpcl/block.x b/rpc/rpcl/block.x
new file mode 100644
index 0000000..0bc988c
--- /dev/null
+++ b/rpc/rpcl/block.x
@@ -0,0 +1,59 @@
+struct blockCreate {
+ char volume[255];
+ char volfileserver[255];
+ char gbid[127]; /* uuid */
+ u_quad_t size;
+ char block_name[255];
+};
+
+struct blockCreateCli {
+ char volume[255];
+ char volfileserver[255];
+ u_quad_t size;
+ u_int mpath; /* HA request count */
+ char block_name[255];
+ string block_hosts<>;
+};
+
+struct blockDeleteCli {
+ char block_name[255];
+ char volume[255];
+};
+
+struct blockDelete {
+ char block_name[255];
+ char gbid[127];
+};
+
+struct blockInfoCli {
+ char block_name[255];
+ char volume[255];
+};
+
+struct blockListCli {
+ char volume[255];
+ u_quad_t offset; /* dentry d_name offset */
+};
+
+struct blockResponse {
+ int exit; /* exit code of the command */
+ string out<>; /* json output */
+ u_quad_t offset; /* dentry d_name offset */
+ opaque xdata<>; /* future reserve */
+};
+
+program GLUSTER_BLOCK_CLI {
+ version GLUSTER_BLOCK_CLI_VERS {
+ blockResponse BLOCK_CREATE_CLI(blockCreateCli) = 1;
+ blockResponse BLOCK_LIST_CLI(blockListCli) = 2;
+ blockResponse BLOCK_INFO_CLI(blockInfoCli) = 3;
+ blockResponse BLOCK_DELETE_CLI(blockDeleteCli) = 4;
+ } = 1;
+} = 212153113; /* B2 L12 O15 C3 K11 C3 */
+
+program GLUSTER_BLOCK {
+ version GLUSTER_BLOCK_VERS {
+ blockResponse BLOCK_CREATE(blockCreate) = 1;
+ blockResponse BLOCK_DELETE(blockDelete) = 2;
+ } = 1;
+} = 21215311; /* B2 L12 O15 C3 K11 */