diff options
author | Milind Changire <mchangir@redhat.com> | 2016-06-23 12:37:51 +0530 |
---|---|---|
committer | Dan Lambright <dlambrig@redhat.com> | 2016-07-29 07:14:37 -0700 |
commit | 1f4e41e8c2f5f4af4564caba0a08996853f089f4 (patch) | |
tree | f9ea7a017b719e047bd1bfec516acce92dad5882 /xlators/cluster/dht/src/dht-common.h | |
parent | 8ef81bf02c779e7d126a654bde28d319d0fa823d (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()
Change-Id: Ice04572fa739c09109c4433e65965197482a7beb
BUG: 1349284
Signed-off-by: Milind Changire <mchangir@redhat.com>
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>
Diffstat (limited to 'xlators/cluster/dht/src/dht-common.h')
-rw-r--r-- | xlators/cluster/dht/src/dht-common.h | 1 |
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 080e98594ec..760a86cccdb 100644 --- a/xlators/cluster/dht/src/dht-common.h +++ b/xlators/cluster/dht/src/dht-common.h @@ -391,6 +391,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; |