diff options
author | Raghavendra G <raghavendra@gluster.com> | 2011-04-13 10:23:03 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-04-14 01:19:30 -0700 |
commit | 1c5706c43d17beb2dd8eb78c5b740bafd5b05506 (patch) | |
tree | 1fe3f981e18e83a9d09fc2fb1a792697a4ccade1 | |
parent | 8c833f1ecab9af3762f4e332126399e61fae090c (diff) |
marker: pass cookie properly while filtering quota xattrs.v3.2.0qa12
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2473 (Support for volume and directory level quota)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2473
-rw-r--r-- | xlators/features/marker/src/marker.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c index 6e65d090f..d7125bb40 100644 --- a/xlators/features/marker/src/marker.c +++ b/xlators/features/marker/src/marker.c @@ -264,7 +264,7 @@ int32_t marker_getxattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this, int32_t op_ret, int32_t op_errno, dict_t *dict) { - if (frame->cookie) { + if (cookie) { gf_log (this->name, GF_LOG_DEBUG, "Filtering the quota extended attributes"); @@ -278,8 +278,9 @@ int32_t marker_getxattr (call_frame_t *frame, xlator_t *this, loc_t *loc, const char *name) { - gf_boolean_t ret = _gf_false; - marker_conf_t *priv = NULL; + gf_boolean_t ret = _gf_false; + marker_conf_t *priv = NULL; + unsigned long cookie = 0; priv = this->private; @@ -297,10 +298,12 @@ wind: * this is to prevent afr from performing * self healing on marker-quota xattrs' */ - frame->cookie = (void *) 1; + cookie = 1; } - STACK_WIND (frame, marker_getxattr_cbk, FIRST_CHILD(this), - FIRST_CHILD(this)->fops->getxattr, loc, name); + STACK_WIND_COOKIE (frame, marker_getxattr_cbk, (void *)cookie, + FIRST_CHILD(this), + FIRST_CHILD(this)->fops->getxattr, loc, + name); } return 0; |