From bd2bb5b01ab1e582d5f400934a62397645dd9441 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Fri, 8 Jul 2011 02:36:46 +0000 Subject: DHT access: For nfs calls, op_ret is always 0, and mode is op_errno Return the values received from the subvol Signed-off-by: shishir gowda Signed-off-by: Anand Avati BUG: 3057 (acl permissions don't work on nfs mount) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3057 --- xlators/cluster/dht/src/dht-common.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 267ef8f6afa..b06add7aad6 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -1760,6 +1760,15 @@ unlock: } +int +dht_access_cbk (call_frame_t *frame, void *cookie, xlator_t *this, + int op_ret, int op_errno) +{ + DHT_STACK_UNWIND (access, frame, op_ret, op_errno); + return 0; +} + + int dht_access (call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t mask) @@ -1791,7 +1800,7 @@ dht_access (call_frame_t *frame, xlator_t *this, local->call_cnt = 1; - STACK_WIND (frame, dht_err_cbk, + STACK_WIND (frame, dht_access_cbk, subvol, subvol->fops->access, loc, mask); -- cgit