From 75f66a98dad3882aff4a68cf0648016101f0a416 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Mon, 28 Oct 2013 10:32:52 +0530 Subject: features/marker-quota: exclude dht-linkfiles from being accounted. Change-Id: I3239f5e8477664dcc04434e4d455ae447493a7ac BUG: 1022995 Signed-off-by: Raghavendra G Reviewed-on: http://review.gluster.org/6153 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/features/marker/src/marker-quota.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c index d972d7f85..afc568fbd 100644 --- a/xlators/features/marker/src/marker-quota.c +++ b/xlators/features/marker/src/marker-quota.c @@ -2268,8 +2268,8 @@ mq_xattr_state (xlator_t *this, dict_t *dict, struct iatt buf) { - if (buf.ia_type == IA_IFREG || - buf.ia_type == IA_IFLNK) { + if (((buf.ia_type == IA_IFREG) && !dht_is_linkfile (&buf, dict)) + || (buf.ia_type == IA_IFLNK)) { mq_inspect_file_xattr (this, loc, dict, buf); } else if (buf.ia_type == IA_IFDIR) mq_inspect_directory_xattr (this, loc, dict, buf); -- cgit