diff options
author | vmallika <vmallika@redhat.com> | 2016-04-03 20:35:52 +0530 |
---|---|---|
committer | Vijaikumar Mallikarjuna <vmallika@redhat.com> | 2016-04-06 02:26:28 -0700 |
commit | 5eabe98861d265abf4d82a783db0568e958ecdcd (patch) | |
tree | d741568b3f41e9af7667f25254be68b82428886b /xlators/features/quota/src/quota.h | |
parent | 45ea3bce3068fa2c846e8c11e069fff9eacf8532 (diff) |
quota: check inode limits only when new file/dir is created
This is a backport of http://review.gluster.org/#/c/13911/
When a inode limit is full, writes to any existing file
fails with disk quota exceed even if usage limit is
not set or usage limit is not full.
> BUG: 1323486
> Change-Id: I9679fe26a2839ade0b1541fa7f0a2b71ac6dcc31
> Signed-off-by: vmallika <vmallika@redhat.com>
Change-Id: I55ec86ebecbb8490e557c61090f6fb8c6c449ec7
BUG: 1324058
Signed-off-by: vmallika <vmallika@redhat.com>
Reviewed-on: http://review.gluster.org/13912
Smoke: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: 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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/features/quota/src/quota.h b/xlators/features/quota/src/quota.h index db27e1e1773..6ec6b8bdbdb 100644 --- a/xlators/features/quota/src/quota.h +++ b/xlators/features/quota/src/quota.h @@ -199,6 +199,7 @@ struct quota_local { loc_t newloc; loc_t validate_loc; int64_t delta; + int8_t object_delta; int32_t op_ret; int32_t op_errno; int64_t size; |