diff options
author | Rajesh Joseph <rjoseph@redhat.com> | 2014-03-05 18:26:37 +0530 |
---|---|---|
committer | Rajesh Joseph <rjoseph@redhat.com> | 2014-03-10 05:24:09 -0700 |
commit | 8f87071658ae8d0799f752a9f7f951fbd46ceda7 (patch) | |
tree | 33bf64697b10cb3ea71780ba45a913e2358a87be /xlators/mgmt/glusterd/src/glusterd.h | |
parent | 586e1cabf850211b9e6856fcb8c42c696de6d484 (diff) |
glusterd/snapshot: Modified restore backend
Now instead of creating volume store files first we constructing
the in-memory volinfo first and then generate the backend store
files. This gives lot of flexibility in restore operation.
This patch also fixes the read-only issue with restored snaps.
Change-Id: I51032228a5212fc3b90dc6e93f3539af3eb36074
BUG: 1064688
Signed-off-by: Rajesh Joseph <rjoseph@redhat.com>
Reviewed-on: http://review.gluster.org/7209
Reviewed-by: Sachin Pandit <spandit@redhat.com>
Reviewed-by: Vijaikumar Mallikarjuna <vmallika@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd.h')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.h b/xlators/mgmt/glusterd/src/glusterd.h index 296b2196d..b70709d51 100644 --- a/xlators/mgmt/glusterd/src/glusterd.h +++ b/xlators/mgmt/glusterd/src/glusterd.h @@ -884,6 +884,8 @@ int glusterd_op_statedump_volume_args_get (dict_t *dict, char **volname, int glusterd_op_gsync_args_get (dict_t *dict, char **op_errstr, char **master, char **slave, char **host_uuid); +int glusterd_stop_volume (glusterd_volinfo_t *volinfo); + /* Synctask part */ int32_t glusterd_op_begin_synctask (rpcsvc_request_t *req, glusterd_op_t op, void *dict); @@ -945,4 +947,7 @@ int glusterd_snapshot (dict_t *dict, char **op_errstr, dict_t *rsp_dict); char * glusterd_build_snap_device_path (char *device, char *snapname); +int32_t +glusterd_snap_remove (glusterd_snap_t *snap, gf_boolean_t remove_lvm, + gf_boolean_t force); #endif |