From b1a884aae98927d847085c9794f8b4aa8bebf838 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Mon, 30 Jan 2012 19:34:03 +0530 Subject: features/marker,quota: Incorporate changes to support nameless lookup Change-Id: Ic5f00a9891bd835ebee5a3e103ef0f75d0b7fc25 BUG: 783925 Signed-off-by: Raghavendra Bhat Reviewed-on: http://review.gluster.com/2702 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi Reviewed-by: Jeff Darcy --- xlators/features/quota/src/quota.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/features/quota/src') diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index a02ec2a79..32144c633 100644 --- a/xlators/features/quota/src/quota.c +++ b/xlators/features/quota/src/quota.c @@ -597,6 +597,9 @@ quota_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this, goto unwind; } + if (local->loc.name == NULL) + goto unwind; + ret = quota_inode_ctx_get (local->loc.inode, local->limit, this, dict, buf, &ctx, 1); if ((ret == -1) || (ctx == NULL)) { -- cgit