summaryrefslogtreecommitdiffstats
path: root/rpc/xdr/src/cli1-xdr.x
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2011-11-02 18:38:50 +0530
committerVijay Bellur <vijay@gluster.com>2011-11-16 01:42:29 -0800
commit7a97478dd1a343fcc5d9d4eab963882191a3de69 (patch)
tree54f48eacb357561a9ebc5f5089e666e0979c7d55 /rpc/xdr/src/cli1-xdr.x
parent913b21621e2dad9146366f24048ff07a8046e5c5 (diff)
XDR: cli-glusterd xdr consolidation
By using only 1 xdr struct for request and 1 xdr struct for response, we will be able scale better and also be able to parse the o/p better For request use- gf1_cli_req - contains dict For response use- gf1_cli_rsp - conains op_ret, op_errno, op_errstr, dict Change-Id: I94b034e1d8fa82dfd0cf96e7602d4039bc43fef3 BUG: 3720 Reviewed-on: http://review.gluster.com/662 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amar@gluster.com>
Diffstat (limited to 'rpc/xdr/src/cli1-xdr.x')
-rw-r--r--rpc/xdr/src/cli1-xdr.x303
1 files changed, 11 insertions, 292 deletions
diff --git a/rpc/xdr/src/cli1-xdr.x b/rpc/xdr/src/cli1-xdr.x
index 9e5dd80af..2b4f4499b 100644
--- a/rpc/xdr/src/cli1-xdr.x
+++ b/rpc/xdr/src/cli1-xdr.x
@@ -103,6 +103,17 @@ enum gf1_cli_top_op {
GF_CLI_TOP_WRITE_PERF
};
+ struct gf_cli_req {
+ opaque dict<>;
+} ;
+
+ struct gf_cli_rsp {
+ int op_ret;
+ int op_errno;
+ string op_errstr<>;
+ opaque dict<>;
+} ;
+
struct gf1_cli_probe_req {
string hostname<>;
int port;
@@ -138,221 +149,17 @@ struct gf1_cli_peer_list_rsp {
opaque friends<>;
} ;
-struct gf1_cli_get_vol_req {
- int flags;
- opaque dict<>;
-} ;
-
-struct gf1_cli_get_vol_rsp {
- int op_ret;
- int op_errno;
- opaque volumes<>;
-} ;
-
- struct gf1_cli_create_vol_req {
- string volname<>;
- gf1_cluster_type type;
- int count;
- opaque bricks<>;
-} ;
-
- struct gf1_cli_create_vol_rsp {
- int op_ret;
- int op_errno;
- string volname<>;
- string op_errstr<>;
-} ;
-
- struct gf1_cli_delete_vol_req {
- string volname<>;
-} ;
-
- struct gf1_cli_delete_vol_rsp {
- int op_ret;
- int op_errno;
- string volname<>;
- string op_errstr<>;
-} ;
-
- struct gf1_cli_start_vol_req {
- string volname<>;
- int flags;
-} ;
-
-
- struct gf1_cli_start_vol_rsp {
- int op_ret;
- int op_errno;
- string volname<>;
- string op_errstr<>;
-} ;
-
- struct gf1_cli_stop_vol_req {
- string volname<>;
- int flags;
-} ;
-
-
- struct gf1_cli_stop_vol_rsp {
- int op_ret;
- int op_errno;
- string volname<>;
- string op_errstr<>;
-} ;
-
-
- struct gf1_cli_rename_vol_req {
- string old_volname<>;
- string new_volname<>;
-} ;
-
- struct gf1_cli_rename_vol_rsp {
- int op_ret;
- int op_errno;
- string volname<>;
-} ;
-
- struct gf1_cli_defrag_vol_req {
- int cmd;
- string volname<>;
-} ;
-
- struct gf1_cli_defrag_vol_rsp {
- int op_ret;
- int op_errno;
- string volname<>;
- unsigned hyper files;
- unsigned hyper size;
- unsigned hyper lookedup_files;
-} ;
-
-
- struct gf2_cli_defrag_vol_rsp {
- int op_ret;
- int op_errno;
- string op_errstr<>;
- string volname<>;
- unsigned hyper files;
- unsigned hyper size;
- unsigned hyper lookedup_files;
-} ;
-
- struct gf1_cli_add_brick_req {
- string volname<>;
- int count;
- opaque bricks<>;
-} ;
-
- struct gf1_cli_add_brick_rsp {
- int op_ret;
- int op_errno;
- string volname<>;
- string op_errstr<>;
-} ;
-
- struct gf1_cli_remove_brick_req {
- string volname<>;
- int count;
- opaque bricks<>;
-} ;
-
-
- struct gf1_cli_remove_brick_rsp {
- int op_ret;
- int op_errno;
- string volname<>;
- string op_errstr<>;
-} ;
-
- struct gf1_cli_replace_brick_req {
- string volname<>;
- gf1_cli_replace_op op;
- opaque bricks<>;
-} ;
-
- struct gf1_cli_replace_brick_rsp {
- int op_ret;
- int op_errno;
- string op_errstr<>;
- string volname<>;
- string status<>;
-} ;
-
-struct gf1_cli_reset_vol_req {
- string volname<>;
- opaque dict<>;
-} ;
-
-
- struct gf1_cli_reset_vol_rsp {
- int op_ret;
- int op_errno;
- string volname<>;
- string op_errstr<>;
-} ;
-
-
-
-struct gf1_cli_set_vol_req {
- string volname<>;
- opaque dict<>;
-} ;
-
-
- struct gf1_cli_set_vol_rsp {
- int op_ret;
- int op_errno;
- string volname<>;
- string op_errstr<>;
- opaque dict<>;
-} ;
-
-struct gf1_cli_log_filename_req {
- string volname<>;
- string brick<>;
- string path<>;
-};
-
-struct gf1_cli_log_filename_rsp {
- int op_ret;
- int op_errno;
- string errstr<>;
-};
-
struct gf1_cli_log_locate_req {
string volname<>;
string brick<>;
};
-struct gf1_cli_sync_volume_req {
- int flags;
- string volname<>;
- string hostname<>;
-};
-
struct gf1_cli_log_locate_rsp {
int op_ret;
int op_errno;
string path<>;
};
-struct gf1_cli_log_rotate_req {
- string volname<>;
- string brick<>;
-};
-
-struct gf1_cli_log_rotate_rsp {
- int op_ret;
- int op_errno;
- string errstr<>;
-};
-
-struct gf1_cli_sync_volume_rsp {
- int op_ret;
- int op_errno;
- string op_errstr<>;
-};
-
struct gf1_cli_fsm_log_req {
string name<>;
};
@@ -364,45 +171,6 @@ struct gf1_cli_fsm_log_rsp {
opaque fsm_log<>;
};
-struct gf1_cli_gsync_set_req {
- opaque dict<>;
-};
-
-struct gf1_cli_gsync_set_rsp {
- int op_ret;
- int op_errno;
- string op_errstr<>;
- int type;
- opaque dict<>;
-};
-
-struct gf1_cli_stats_volume_req {
- string volname<>;
- gf1_cli_stats_op op;
- opaque dict_req<>;
-};
-
-struct gf1_cli_stats_volume_rsp {
- int op_ret;
- int op_errno;
- string op_errstr<>;
- opaque stats_info<>;
-};
-
-struct gf1_cli_quota_req {
- string volname<>;
- opaque dict<>;
-} ;
-
-struct gf1_cli_quota_rsp {
- int op_ret;
- int op_errno;
- string volname<>;
- string op_errstr<>;
- string limit_list<>;
- gf_quota_type type;
-};
-
struct gf1_cli_getwd_req {
int unused;
} ;
@@ -413,30 +181,6 @@ struct gf1_cli_getwd_rsp {
string wd<>;
};
-struct gf1_cli_log_level_req {
- string volname<>;
- string xlator<>;
- string loglevel<>;
-};
-
-struct gf1_cli_log_level_rsp {
- int op_ret;
- int op_errno;
- string op_errstr<>;
-};
-
-struct gf1_cli_status_volume_req {
- string volname<>;
- opaque dict<>;
-};
-
-struct gf1_cli_status_volume_rsp {
- int op_ret;
- int op_errno;
- string op_errstr<>;
- opaque dict<>;
-};
-
struct gf1_cli_mount_req {
string label<>;
opaque dict<>;
@@ -457,28 +201,3 @@ struct gf1_cli_umount_rsp {
int op_ret;
int op_errno;
};
-
-struct gf1_cli_heal_vol_req {
- string volname<>;
-} ;
-
-struct gf1_cli_heal_vol_rsp {
- int op_ret;
- int op_errno;
- string volname<>;
- string op_errstr<>;
- opaque dict<>;
-};
-struct gf1_cli_statedump_vol_req {
- string volname<>;
- string options<>;
- int option_cnt;
-};
-
-struct gf1_cli_statedump_vol_rsp {
- int op_ret;
- int op_errno;
- string volname<>;
- string op_errstr<>;
- opaque dict<>;
-};