summaryrefslogtreecommitdiffstats
path: root/xlators/features/quota/src/quota.h
diff options
context:
space:
mode:
authorRaghavendra G <rgowdapp@redhat.com>2013-08-08 16:18:31 +0530
committerKrishnan Parthasarathi <kparthas@redhat.com>2013-08-12 00:48:15 +0530
commit0bcdd3e3a632ffa5359a8d9ee74b364ca3af6bbe (patch)
treec2621c448005b5f3d4ec38873171f9188272c448 /xlators/features/quota/src/quota.h
parent008d261e9b939fa2b71b1e3f23945d86fec4f632 (diff)
features/quota: fixes to code reading limits from xattrs.
It was assumed that hard and soft limits are stored as two different xattrs on disk. However they are stored as two members of a structure which is stored as a value for a single key. Change-Id: I947fa5c375209c31fe1511bda0d5cb0e249af9ba BUG: 969461 Signed-off-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/features/quota/src/quota.h')
-rw-r--r--xlators/features/quota/src/quota.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/features/quota/src/quota.h b/xlators/features/quota/src/quota.h
index 3f1458a3..c4d5c6ad 100644
--- a/xlators/features/quota/src/quota.h
+++ b/xlators/features/quota/src/quota.h
@@ -184,6 +184,11 @@ struct quota_priv {
};
typedef struct quota_priv quota_priv_t;
+typedef struct quota_limit {
+ int64_t hard_lim;
+ int64_t soft_lim_percent;
+} quota_limit_t __attribute__ ((packed));
+
int
quota_enforcer_lookup (call_frame_t *frame, xlator_t *this, loc_t *loc,
dict_t *xdata, fop_lookup_cbk_t cbk);