From 5077242f1d17c9cc8f5233333dbdfe2f73e71e44 Mon Sep 17 00:00:00 2001 From: Varun Shastry Date: Wed, 13 Feb 2013 18:00:04 +0530 Subject: features/quota: Add option to consider the quota limit in statfs estimation Adds an option, features.quota-deem-statfs (default off) to consider the quota limits while calculating the volume stats. Eg: Backend is of size 10GB and limit set on / is 5GB. If the option is off df show actual size to be 10GB and when it is on df shows 5GB. Change-Id: Ib30733bb69afecce1dea9d0491af89d551d214cc BUG: 905425 Signed-off-by: Varun Shastry Reviewed-on: http://review.gluster.org/4511 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/features/quota/src/quota.h | 1 + 1 file changed, 1 insertion(+) (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 2b4e9a01..84ecbb30 100644 --- a/xlators/features/quota/src/quota.h +++ b/xlators/features/quota/src/quota.h @@ -134,6 +134,7 @@ typedef struct quota_local quota_local_t; struct quota_priv { int64_t timeout; + gf_boolean_t consider_statfs; struct list_head limit_head; gf_lock_t lock; }; -- cgit