summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd.h
diff options
context:
space:
mode:
authorRajesh Joseph <rjoseph@redhat.com>2014-04-23 18:36:34 +0530
committerVijay Bellur <vbellur@redhat.com>2014-05-02 23:33:10 -0700
commit66f560e0071db84d430f38b996364f6b8c4f0f6d (patch)
tree3feda2f915c4f4eefc6e1e50eddf1918ff62d2a6 /xlators/mgmt/glusterd/src/glusterd.h
parentf48656b32e328f96bda5aade55070867d5faf333 (diff)
glusterd/snapshot: Restore cleanup
If restores fails for some reason then we should revert the restore operation. To do so we take the backup of vols folder before doing a restore and if the restore fails then we revert the changes done. Change-Id: I97f72aec3a34fc122bf137beb336e94db3a04dff BUG: 1061685 Signed-off-by: Rajesh Joseph <rjoseph@redhat.com> Reviewed-on: http://review.gluster.org/7548 Reviewed-by: Santosh Pradhan <spradhan@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd.h')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.h b/xlators/mgmt/glusterd/src/glusterd.h
index 2496a4d1182..b7c0aeafb1e 100644
--- a/xlators/mgmt/glusterd/src/glusterd.h
+++ b/xlators/mgmt/glusterd/src/glusterd.h
@@ -378,6 +378,7 @@ typedef enum gd_snap_status_ {
GD_SNAP_STATUS_INIT,
GD_SNAP_STATUS_IN_USE,
GD_SNAP_STATUS_DECOMMISSION,
+ GD_SNAP_STATUS_UNDER_RESTORE,
GD_SNAP_STATUS_RESTORED,
} gd_snap_status_t;
@@ -1005,4 +1006,6 @@ glusterd_add_new_entry_to_list (char *missed_info, char *snap_vol_id,
int32_t brick_num, char *brick_path,
int32_t snap_op, int32_t snap_status);
+int
+glusterd_snapshot_revert_restore_from_snap (glusterd_snap_t *snap);
#endif