From 8f87071658ae8d0799f752a9f7f951fbd46ceda7 Mon Sep 17 00:00:00 2001 From: Rajesh Joseph Date: Wed, 5 Mar 2014 18:26:37 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/7209 Reviewed-by: Sachin Pandit Reviewed-by: Vijaikumar Mallikarjuna --- xlators/mgmt/glusterd/src/glusterd-utils.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.h') diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.h b/xlators/mgmt/glusterd/src/glusterd-utils.h index 1ef5685eb..e3e275095 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.h +++ b/xlators/mgmt/glusterd/src/glusterd-utils.h @@ -83,7 +83,8 @@ glusterd_volinfo_new (glusterd_volinfo_t **volinfo); int32_t glusterd_volinfo_dup (glusterd_volinfo_t *volinfo, - glusterd_volinfo_t **dup_volinfo); + glusterd_volinfo_t **dup_volinfo, + gf_boolean_t set_userauth); char * glusterd_auth_get_username (glusterd_volinfo_t *volinfo); @@ -604,4 +605,10 @@ glusterd_get_brick_root (char *path, char **mount_point); int glusterd_compare_snap_time(struct list_head *, struct list_head *); + +int32_t +glusterd_snap_volinfo_restore (glusterd_volinfo_t *new_volinfo, + glusterd_volinfo_t *snap_volinfo); +int32_t +glusterd_lvm_snapshot_remove (glusterd_volinfo_t *snap_vol); #endif -- cgit