diff options
Diffstat (limited to 'rpc/block.x')
-rw-r--r-- | rpc/block.x | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/rpc/block.x b/rpc/block.x index c88fdf2..b563c9e 100644 --- a/rpc/block.x +++ b/rpc/block.x @@ -1,12 +1,35 @@ +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; + char block_name[255]; + string block_hosts<>; +}; -struct blockTrans { - int exit; /* exit code of the command */ - string out<>; /* stdout of the command */ +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; + } = 1; +} = 212153113; /* B2 L12 O15 C3 K11 C3 */ + program GLUSTER_BLOCK { version GLUSTER_BLOCK_VERS { - blockTrans BLOCK_EXEC(string) = 1; + blockResponse BLOCK_CREATE(blockCreate) = 1; } = 1; } = 21215311; /* B2 L12 O15 C3 K11 */ |