summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-store.c
diff options
context:
space:
mode:
authorVijaikumar M <vmallika@redhat.com>2014-03-04 13:02:52 +0530
committerRajesh Joseph <rjoseph@redhat.com>2014-03-06 01:31:23 -0800
commit40497ba922667abbc20dda635cb0ef0abe5f51eb (patch)
tree3755c4d52ff5ed4a6d6f0d1cff0dcd80cef52ba1 /xlators/mgmt/glusterd/src/glusterd-store.c
parentfabee8f75c56f18c949b79dcc751c2855b5c7514 (diff)
glusterd/snapshot: Snapshot create and delete changes
With the snap driven approach, While creating the snapshot, We have to mention the snap-name first and then the volumes to be associated with that. Corresponding changes has been made in glusterd. While deleting the snapshot, we have to mention only the snapname. Corresponding changes has been made in glusterd. CLI changes for the same can be found here: http://review.gluster.org/#/c/6947/ Change-Id: I8bd8f471da5b728165da5f331faad3dde3486823 Signed-off-by: Vijaikumar M <vmallika@redhat.com> Reviewed-on: http://review.gluster.org/7123 Reviewed-by: Avra Sengupta <asengupt@redhat.com> Reviewed-by: Rajesh Joseph <rjoseph@redhat.com> Tested-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-store.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-store.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c
index 7b45da00f..ae20b60db 100644
--- a/xlators/mgmt/glusterd/src/glusterd-store.c
+++ b/xlators/mgmt/glusterd/src/glusterd-store.c
@@ -1145,39 +1145,6 @@ out:
}
int32_t
-glusterd_store_snap_volume (glusterd_volinfo_t *volinfo, glusterd_snap_t *snap)
-{
- int32_t ret = -1;
- GF_ASSERT (volinfo);
- GF_ASSERT (snap);
-
-
- LOCK (&snap->lock);
- {
- ret = glusterd_store_create_volume_dir (volinfo);
- if (ret) {
- gf_log (THIS->name, GF_LOG_ERROR,
- "Failed create snapshot dir (%s) for volume "
- "%s", snap->snapname, volinfo->volname);
- goto unlock;
- }
-
- ret = glusterd_store_perform_volume_store (volinfo);
- if (ret) {
- gf_log (THIS->name, GF_LOG_ERROR,
- "Failed store snapshot volinfo (%s) for volume "
- "%s", snap->snapname, volinfo->volname);
- goto unlock;
- }
- }
-unlock:
- UNLOCK (&snap->lock);
-
- return 0;
-
-}
-
-int32_t
glusterd_store_snap_cg (glusterd_snap_cg_t *cg)
{
int32_t ret = -1;