From cc0378d39f4082f51d5ef6e02b3007fe9e78cb31 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Wed, 7 May 2014 20:13:43 +0530 Subject: user servicable snapshots Change-Id: Idbf27dbe088e646a8ab81cedc5818413795895ea Signed-off-by: Raghavendra Bhat Signed-off-by: Anand Subramanian Signed-off-by: Raghavendra Bhat Reviewed-on: http://review.gluster.org/7700 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/features/quota/src/quota.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/features/quota/src') diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index 913741e0fda..c3e730bd1fd 100644 --- a/xlators/features/quota/src/quota.c +++ b/xlators/features/quota/src/quota.c @@ -1013,7 +1013,8 @@ quota_fill_inodectx (xlator_t *this, inode_t *inode, dict_t *dict, goto unlock; } - if (loc->name == NULL) + /* do nothing if it is a nameless lookup */ + if (loc->name == NULL || !loc->parent) goto unlock; list_for_each_entry (dentry, &ctx->parents, next) { -- cgit