From ba1bc2e5823da75f9bbe4742545a427aeb0fd8f3 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Thu, 2 Jun 2011 03:01:20 +0000 Subject: performance/io-cache: fix the check of min and max file size. Signed-off-by: Amar Tumballi Signed-off-by: Anand Avati BUG: 2974 (volume set for 'cache-min-file-size' succeeds even if 'min-file size' is greater than 'max-file-size') URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2974 --- xlators/performance/io-cache/src/io-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c index a3ebaf47c0e..da6c556b95c 100644 --- a/xlators/performance/io-cache/src/io-cache.c +++ b/xlators/performance/io-cache/src/io-cache.c @@ -1671,7 +1671,7 @@ reconfigure (xlator_t *this, dict_t *options) table->max_file_size); } - if ((max_file_size >= 0) & (min_file_size > max_file_size)) { + if ((max_file_size >= 0) && (min_file_size > max_file_size)) { gf_log ("io-cache", GF_LOG_ERROR, "minimum size (%" PRIu64") of a file that can be cached is " "greater than maximum size (%"PRIu64"). " -- cgit