summaryrefslogtreecommitdiffstats
path: root/rpc/block.x
diff options
context:
space:
mode:
Diffstat (limited to 'rpc/block.x')
-rw-r--r--rpc/block.x26
1 files changed, 25 insertions, 1 deletions
diff --git a/rpc/block.x b/rpc/block.x
index b563c9e..aebe451 100644
--- a/rpc/block.x
+++ b/rpc/block.x
@@ -1,4 +1,3 @@
-
struct blockCreate {
char volume[255];
char volfileserver[255];
@@ -15,6 +14,26 @@ struct blockCreateCli {
string block_hosts<>;
};
+struct blockDeleteCli {
+ char block_name[255];
+ string block_hosts<>;
+};
+
+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 */
@@ -25,11 +44,16 @@ struct blockResponse {
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;
+ blockResponse BLOCK_EXEC(string) = 3;
} = 1;
} = 21215311; /* B2 L12 O15 C3 K11 */