From 14b3a145a31e9f6760fb41bb104fcc2cf3bcc463 Mon Sep 17 00:00:00 2001 From: Milind Changire Date: Thu, 23 Jun 2016 12:37:51 +0530 Subject: cluster/tier: dont promote if estimated block consumption > hi watermark Add test to fail promotion if estimated block consumption grows beyond hi watermark. Skip file migrations until next cycle if tier_get_fs_stat() fails in tier_migrate_using_query_file() > Reviewed-on: http://review.gluster.org/14780 > Smoke: Gluster Build System > CentOS-regression: Gluster Build System > NetBSD-regression: NetBSD Build System > Reviewed-by: mohammed rafi kc > Reviewed-by: Dan Lambright (cherry picked from commit 1f4e41e8c2f5f4af4564caba0a08996853f089f4) Change-Id: Ice04572fa739c09109c4433e65965197482a7beb BUG: 1362198 Signed-off-by: Milind Changire Reviewed-on: http://review.gluster.org/15065 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Niels de Vos --- xlators/cluster/dht/src/dht-common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/cluster/dht/src/dht-common.h') diff --git a/xlators/cluster/dht/src/dht-common.h b/xlators/cluster/dht/src/dht-common.h index 9a71c46c8e4..fa06252d80e 100644 --- a/xlators/cluster/dht/src/dht-common.h +++ b/xlators/cluster/dht/src/dht-common.h @@ -377,6 +377,7 @@ typedef struct gf_tier_conf { int watermark_hi; int watermark_low; int watermark_last; + unsigned long block_size; fsblkcnt_t blocks_total; fsblkcnt_t blocks_used; int percent_full; -- cgit