summaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorRajesh Joseph <rjoseph@redhat.com>2013-10-15 17:10:52 +0530
committerRajesh Joseph <rjoseph@redhat.com>2013-10-22 16:24:55 +0530
commitfa5541580af1a77fb53344809892feec35a2ec20 (patch)
treed4f8b9a578cffc953f02478ca6c5f72c0fd08f3d /rpc
parent6bdd3bc9257cbbed863c9727e5adfb3cd8566db6 (diff)
mgmt/glusterd: Snapshot list support
Handles snapshot list command issued by cli. Details of all the snapshots will be sent back to the caller in required format. Change-Id: I01e512290548007c06e90b40a59cdde048fab954 Signed-off-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'rpc')
-rw-r--r--rpc/xdr/src/cli1-xdr.h1
-rw-r--r--rpc/xdr/src/cli1-xdr.x3
2 files changed, 3 insertions, 1 deletions
diff --git a/rpc/xdr/src/cli1-xdr.h b/rpc/xdr/src/cli1-xdr.h
index 524030f7f..fb77edb00 100644
--- a/rpc/xdr/src/cli1-xdr.h
+++ b/rpc/xdr/src/cli1-xdr.h
@@ -171,6 +171,7 @@ typedef enum gf_cli_status_type gf_cli_status_type;
enum gf1_cli_snapshot {
GF_SNAP_OPTION_TYPE_NONE = 0,
GF_SNAP_OPTION_TYPE_CREATE = 1,
+ GF_SNAP_OPTION_TYPE_LIST = 2,
};
typedef enum gf1_cli_snapshot gf1_cli_snapshot;
diff --git a/rpc/xdr/src/cli1-xdr.x b/rpc/xdr/src/cli1-xdr.x
index 98c093906..ed3242fb4 100644
--- a/rpc/xdr/src/cli1-xdr.x
+++ b/rpc/xdr/src/cli1-xdr.x
@@ -124,7 +124,8 @@ enum gf_cli_status_type {
/* Identifiers for snapshot clis */
enum gf1_cli_snapshot {
GF_SNAP_OPTION_TYPE_NONE,
- GF_SNAP_OPTION_TYPE_CREATE
+ GF_SNAP_OPTION_TYPE_CREATE,
+ GF_SNAP_OPTION_TYPE_LIST
};
struct gf_cli_req {