diff options
author | Krishnan Parthasarathi <kparthas@redhat.com> | 2013-10-28 19:14:49 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-02-05 23:05:59 -0800 |
commit | f0fac871dc32f0d3756c84c22b7f9b0a6b3daec5 (patch) | |
tree | f3ac346750ea6d481b41ca0a4941b31562311099 /xlators/features/quota/src/quota.h | |
parent | af29cc47197f71b66f5a4f2dc6cca573a78bbdce (diff) |
quota: get directory size before enforcing quota on rename
Backport of http://review.gluster.org/6155
BUG: 1023974
Change-Id: Icb4bca8c4a5fa9b14855478e69b1315f2e9a3c3d
Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com>
Reviewed-on: http://review.gluster.org/6887
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/features/quota/src/quota.h')
-rw-r--r-- | xlators/features/quota/src/quota.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/features/quota/src/quota.h b/xlators/features/quota/src/quota.h index 82ba90513..84c3257fe 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 { |