summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-02-25 15:38:05 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-03-04 03:13:20 -0800
commit549d1a81f49f58f842f69f64f7d152a3e6ecb0d0 (patch)
tree4a43e45ede76a115ed9c5d4723d6a685176b950d /xlators/cluster
parent83c650fe5b11a177b56274483aeecd3127520831 (diff)
distribute: Restore parent ino from local in symlink
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 597 (miscellaneous fixes for xlators to work well with NFS xlator) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=597
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/dht/src/dht-common.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index fe97b728506..1c0cf682af8 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -2634,6 +2634,7 @@ dht_symlink (call_frame_t *frame, xlator_t *this,
xlator_t *subvol = NULL;
int op_errno = -1;
dht_local_t *local = NULL;
+ int ret = -1;
VALIDATE_OR_GOTO (frame, err);
@@ -2657,6 +2658,13 @@ dht_symlink (call_frame_t *frame, xlator_t *this,
goto err;
}
+ ret = loc_copy (&local->loc, loc);
+ if (ret == -1) {
+ gf_log (this->name, GF_LOG_TRACE, "Failed to copy loc");
+ op_errno = ENOMEM;
+ goto err;
+ }
+
gf_log (this->name, GF_LOG_TRACE,
"creating %s on %s", loc->path, subvol->name);