summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra G <rgowdapp@redhat.com>2013-10-28 10:32:52 +0530
committerAnand Avati <avati@redhat.com>2013-11-26 10:27:03 -0800
commit75f66a98dad3882aff4a68cf0648016101f0a416 (patch)
treebcb8eba00b29c3a648987a0022ce989fc3df6de7
parent1a2f51144fcbd920a6f3769d6b2f3ceeefdc220d (diff)
features/marker-quota: exclude dht-linkfiles from being accounted.
Change-Id: I3239f5e8477664dcc04434e4d455ae447493a7ac BUG: 1022995 Signed-off-by: Raghavendra G <rgowdapp@redhat.com> Reviewed-on: http://review.gluster.org/6153 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
-rw-r--r--xlators/features/marker/src/marker-quota.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c
index d972d7f85b0..afc568fbd9e 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);