summaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorRajesh Joseph <rjoseph@redhat.com>2013-10-25 12:08:32 +0530
committershishir gowda <sgowda@redhat.com>2013-11-15 14:39:42 +0530
commit3a7644605bdd004348bbd8c0b797eaebbc10ae34 (patch)
treecef18a86922040bf076d604dadde92d53cb7b46b /rpc
parent4e1c76a68f2208822c503a555206f21a3da52256 (diff)
Snapshot: Added new XDR types
Added new XDR types for all the snapshot command. Change-Id: I46c02ea8e9c81c7967a773386c4b77b5eb6d5075 Signed-off-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'rpc')
-rw-r--r--rpc/xdr/src/cli1-xdr.h8
-rw-r--r--rpc/xdr/src/cli1-xdr.x8
2 files changed, 14 insertions, 2 deletions
diff --git a/rpc/xdr/src/cli1-xdr.h b/rpc/xdr/src/cli1-xdr.h
index bdc76b6..0987d6d 100644
--- a/rpc/xdr/src/cli1-xdr.h
+++ b/rpc/xdr/src/cli1-xdr.h
@@ -172,7 +172,13 @@ 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,
+ GF_SNAP_OPTION_TYPE_DELETE = 2,
+ GF_SNAP_OPTION_TYPE_RESTORE = 3,
+ GF_SNAP_OPTION_TYPE_START = 4,
+ GF_SNAP_OPTION_TYPE_STOP = 5,
+ GF_SNAP_OPTION_TYPE_LIST = 6,
+ GF_SNAP_OPTION_TYPE_STATUS = 7,
+ GF_SNAP_OPTION_TYPE_CONFIG = 8,
};
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 b8dff56..3a28d52 100644
--- a/rpc/xdr/src/cli1-xdr.x
+++ b/rpc/xdr/src/cli1-xdr.x
@@ -126,7 +126,13 @@ enum gf_cli_status_type {
enum gf1_cli_snapshot {
GF_SNAP_OPTION_TYPE_NONE,
GF_SNAP_OPTION_TYPE_CREATE,
- GF_SNAP_OPTION_TYPE_LIST
+ GF_SNAP_OPTION_TYPE_DELETE,
+ GF_SNAP_OPTION_TYPE_RESTORE,
+ GF_SNAP_OPTION_TYPE_START,
+ GF_SNAP_OPTION_TYPE_STOP,
+ GF_SNAP_OPTION_TYPE_LIST,
+ GF_SNAP_OPTION_TYPE_STATUS,
+ GF_SNAP_OPTION_TYPE_CONFIG
};
struct gf_cli_req {