summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-handshake.c
diff options
context:
space:
mode:
authorSachin Pandit <spandit@redhat.com>2013-12-24 09:24:42 +0530
committerSachin Pandit <spandit@redhat.com>2014-01-15 08:40:50 +0530
commit9e3459ccf35ac62004e4d8e15e25d1ed264f8904 (patch)
treebf834bd5b8f5f2109a9e2a8fa638ca3c03dbfc9f /xlators/mgmt/glusterd/src/glusterd-handshake.c
parentc7cab23472b1d59958a0f39bdaf7776e09f039e4 (diff)
mgmt/glusterd : Having a separate list for snapshots.
Creating a separate list for snaps taken, as cluttering snaps in the volume list does not look neat. Change-Id: Ida4a183e95e8694b85ebb5a680d06b7d29a460a0 BUG: 1040947 Signed-off-by: Sachin Pandit <spandit@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-handshake.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handshake.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handshake.c b/xlators/mgmt/glusterd/src/glusterd-handshake.c
index bea5540e4..dbf342cbc 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handshake.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handshake.c
@@ -93,7 +93,11 @@ build_volfile_path (const char *volname, char *path,
vol = strtok_r (dup_volname, ".", &tmp);
if (!vol)
goto out;
- ret = glusterd_volinfo_find (vol, &volinfo);
+ if (!snap_volume)
+ ret = glusterd_volinfo_find (vol, &volinfo);
+ else
+ ret = glusterd_snap_volinfo_find (vol,
+ &volinfo);
if (ret)
goto out;
}