From 17c4fb2d04f84b5632983866e8bddfbd7d77a054 Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Mon, 28 Oct 2013 19:14:49 +0530 Subject: quota: get directory size before enforcing quota on rename Change-Id: If18cab5992ddc91457782786942971deb1b51ead BUG: 1023974 Signed-off-by: Krishnan Parthasarathi Reviewed-on: http://review.gluster.org/6155 Reviewed-by: Raghavendra G Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/features/quota/src/quota.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/features/quota/src/quota.h') diff --git a/xlators/features/quota/src/quota.h b/xlators/features/quota/src/quota.h index 96c19e77eb8..02bc0d8b6b4 100644 --- a/xlators/features/quota/src/quota.h +++ b/xlators/features/quota/src/quota.h @@ -130,6 +130,9 @@ goto label; \ } while (0) +#define QUOTA_REG_OR_LNK_FILE(ia_type) \ + (IA_ISREG (ia_type) || IA_ISLNK (ia_type)) + struct quota_dentry { -- cgit