|
|
cb8e9e |
From b7ba294c987f0f8b9a2a39067f59e0ffc0463f38 Mon Sep 17 00:00:00 2001
|
|
|
cb8e9e |
From: Mohammed Rafi KC <rkavunga@redhat.com>
|
|
|
cb8e9e |
Date: Mon, 6 Jul 2015 12:15:45 +0530
|
|
|
cb8e9e |
Subject: [PATCH 269/279] snapview-client: Allocate memory using GF_CALLOC
|
|
|
cb8e9e |
|
|
|
cb8e9e |
loc->path memory should allocate through
|
|
|
cb8e9e |
GF_CALLOC/GF_MALLOC, since it uses GF_FREE
|
|
|
cb8e9e |
from loc_wipe.
|
|
|
cb8e9e |
|
|
|
cb8e9e |
Back port of :
|
|
|
cb8e9e |
>Change-Id: If3030175dfb07b0e0b6c0a30234857f8a0780035
|
|
|
cb8e9e |
>BUG: 1240184
|
|
|
cb8e9e |
>Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
|
|
|
cb8e9e |
>Reviewed-on: http://review.gluster.org/11543
|
|
|
cb8e9e |
>Tested-by: NetBSD Build System <jenkins@build.gluster.org>
|
|
|
cb8e9e |
>Reviewed-by: Avra Sengupta <asengupt@redhat.com>
|
|
|
cb8e9e |
>Reviewed-by: Vijay Bellur <vbellur@redhat.com>
|
|
|
cb8e9e |
|
|
|
cb8e9e |
(cherry picked from commit 32207db25eea821dfb1abd033df1013d4b8fc622)
|
|
|
cb8e9e |
|
|
|
cb8e9e |
Change-Id: I69f9338dc5ae9950b5344000259558423c3f8618
|
|
|
cb8e9e |
BUG: 1245915
|
|
|
cb8e9e |
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
|
|
|
cb8e9e |
Reviewed-on: http://review.gluster.org/11743
|
|
|
cb8e9e |
Reviewed-by: Niels de Vos <ndevos@redhat.com>
|
|
|
cb8e9e |
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
|
|
|
cb8e9e |
Tested-by: Gluster Build System <jenkins@build.gluster.com>
|
|
|
cb8e9e |
Reviewed-on: https://code.engineering.redhat.com/gerrit/55152
|
|
|
cb8e9e |
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
|
|
|
cb8e9e |
Tested-by: Rajesh Joseph <rjoseph@redhat.com>
|
|
|
cb8e9e |
---
|
|
|
cb8e9e |
.../features/snapview-client/src/snapview-client.c | 2 +-
|
|
|
cb8e9e |
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
cb8e9e |
|
|
|
cb8e9e |
diff --git a/xlators/features/snapview-client/src/snapview-client.c b/xlators/features/snapview-client/src/snapview-client.c
|
|
|
cb8e9e |
index 81e3b20..f1b3899 100644
|
|
|
cb8e9e |
--- a/xlators/features/snapview-client/src/snapview-client.c
|
|
|
cb8e9e |
+++ b/xlators/features/snapview-client/src/snapview-client.c
|
|
|
cb8e9e |
@@ -536,7 +536,7 @@ svc_statfs (call_frame_t *frame, xlator_t *this, loc_t *loc,
|
|
|
cb8e9e |
* virtual directory from path
|
|
|
cb8e9e |
*/
|
|
|
cb8e9e |
subvolume = FIRST_CHILD (this);
|
|
|
cb8e9e |
- root_loc.path = "/";
|
|
|
cb8e9e |
+ root_loc.path = gf_strdup("/");
|
|
|
cb8e9e |
gf_uuid_clear(root_loc.gfid);
|
|
|
cb8e9e |
root_loc.gfid[15] = 1;
|
|
|
cb8e9e |
root_loc.inode = inode_ref (loc->inode->table->root);
|
|
|
cb8e9e |
--
|
|
|
cb8e9e |
1.7.1
|
|
|
cb8e9e |
|