summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src/dht-common.h
diff options
context:
space:
mode:
authorMilind Changire <mchangir@redhat.com>2016-06-23 12:37:51 +0530
committerNiels de Vos <ndevos@redhat.com>2016-08-05 01:12:11 -0700
commit14b3a145a31e9f6760fb41bb104fcc2cf3bcc463 (patch)
tree1d3849685b829cf98e01cf6f8119d34dbc41324f /xlators/cluster/dht/src/dht-common.h
parent903ff0cf9c4e870f17fd9cc8ef95321f39c9760c (diff)
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 <jenkins@build.gluster.org> > CentOS-regression: Gluster Build System <jenkins@build.gluster.org> > NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> > Reviewed-by: mohammed rafi kc <rkavunga@redhat.com> > Reviewed-by: Dan Lambright <dlambrig@redhat.com> (cherry picked from commit 1f4e41e8c2f5f4af4564caba0a08996853f089f4) Change-Id: Ice04572fa739c09109c4433e65965197482a7beb BUG: 1362198 Signed-off-by: Milind Changire <mchangir@redhat.com> Reviewed-on: http://review.gluster.org/15065 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'xlators/cluster/dht/src/dht-common.h')
-rw-r--r--xlators/cluster/dht/src/dht-common.h1
1 files changed, 1 insertions, 0 deletions
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;