summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-utils.h
diff options
context:
space:
mode:
authorRajesh Joseph <rjoseph@redhat.com>2014-03-05 18:26:37 +0530
committerRajesh Joseph <rjoseph@redhat.com>2014-03-10 05:24:09 -0700
commit8f87071658ae8d0799f752a9f7f951fbd46ceda7 (patch)
tree33bf64697b10cb3ea71780ba45a913e2358a87be /xlators/mgmt/glusterd/src/glusterd-utils.h
parent586e1cabf850211b9e6856fcb8c42c696de6d484 (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-utils.h')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.h b/xlators/mgmt/glusterd/src/glusterd-utils.h
index 1ef5685..e3e2750 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