diff options
Diffstat (limited to 'xlators/features/quota/src/quota.h')
-rw-r--r-- | xlators/features/quota/src/quota.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/xlators/features/quota/src/quota.h b/xlators/features/quota/src/quota.h index 2ba339aa..86842140 100644 --- a/xlators/features/quota/src/quota.h +++ b/xlators/features/quota/src/quota.h @@ -26,6 +26,7 @@ #define VAL_LENGTH 8 #define READDIR_BUF 4096 #define QUOTA_UPDATE_USAGE_KEY "quota-update-usage" +#define QUOTA_LIMIT_KEY "trusted.glusterfs.quota.limit-set" #define QUOTA_WIND_IF_DISABLED(quota_on, frame, this, fop, params ...) \ do { \ @@ -119,10 +120,12 @@ typedef struct quota_dentry quota_dentry_t; struct quota_inode_ctx { int64_t size; - int64_t limit; + int64_t hard_lim; + int64_t soft_lim; struct iatt buf; struct list_head parents; struct timeval tv; + struct timeval prev_log; gf_lock_t lock; }; typedef struct quota_inode_ctx quota_inode_ctx_t; @@ -139,7 +142,6 @@ struct quota_local { int32_t op_ret; int32_t op_errno; int64_t size; - int64_t limit; char just_validated; inode_t *inode; call_stub_t *stub; @@ -162,11 +164,12 @@ struct qd_vols_conf { typedef struct qd_vols_conf qd_vols_conf_t; struct quota_priv { - int64_t timeout; double default_soft_lim; + uint32_t log_timeout; + uint32_t soft_timeout; + uint32_t hard_timeout; gf_boolean_t quota_on; gf_boolean_t consider_statfs; - struct list_head limit_head; qd_vols_conf_t **qd_vols_conf; gf_lock_t lock; }; |