From c7b518ab85f6fbcbdbae64c8fa092e998a14d1e9 Mon Sep 17 00:00:00 2001 From: Kaushik BV Date: Thu, 7 Oct 2010 06:37:12 +0000 Subject: mgmt/Glusterd: Volume set enhancements - performance.flush-behind, transport.keepalive added - volume info to display the options reconfigured Signed-off-by: Kaushik BV Signed-off-by: Vijay Bellur BUG: 1159 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1159 --- xlators/performance/io-cache/src/io-cache.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xlators/performance/io-cache') diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c index b094f97c4..04b5c394e 100644 --- a/xlators/performance/io-cache/src/io-cache.c +++ b/xlators/performance/io-cache/src/io-cache.c @@ -1674,7 +1674,7 @@ reconfigure (xlator_t *this, dict_t *options) goto out; } - if (cache_size < (4*(2^20))) { + if (cache_size < (4 * GF_UNIT_MB)) { gf_log(this->name, GF_LOG_ERROR, "Reconfiguration" "'option cache-size %s' failed , Max value" "can be 4MiB, Defaulting to old value (%d)" @@ -1683,8 +1683,8 @@ reconfigure (xlator_t *this, dict_t *options) goto out; } - if (cache_size > (6 *(2^30))) { - gf_log(this->name, GF_LOG_ERROR, "Reconfiguration" + if (cache_size > (6 * GF_UNIT_GB)) { + gf_log (this->name, GF_LOG_ERROR, "Reconfiguration" "'option cache-size %s' failed , Max value" "can be 6GiB, Defaulting to old value (%d)" , cache_size_string, table->cache_size); @@ -1694,7 +1694,7 @@ reconfigure (xlator_t *this, dict_t *options) gf_log (this->name, GF_LOG_DEBUG, "Reconfiguring " - " cache-size %"PRIu64"", table->cache_size); + " cache-size %"PRIu64"", cache_size); table->cache_size = cache_size; } else -- cgit