summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2011-07-13 03:33:26 +0000
committerAnand Avati <avati@gluster.com>2011-07-13 03:00:40 -0700
commit4223545bdc67383e622d34ee878d3461ad4f63b0 (patch)
treef1219b444e5dbc66b84c5e196fb1fd14066151be /xlators
parente103ab41f3fd917e9a6df3d6113e2c4c3603b29b (diff)
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 <shishirng@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 3057 (acl permissions don't work on nfs mount) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3057 BUG: 3057 (acl permissions don't work on nfs mount) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3057
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/dht/src/dht-common.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index c07de138029..4bc87fc2c43 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -1551,6 +1551,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)
{
@@ -1581,7 +1590,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);