summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/performance/io-cache/src/io-cache.c3
-rw-r--r--xlators/performance/quick-read/src/quick-read.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c
index df247c2318a..74ddf8e36a1 100644
--- a/xlators/performance/io-cache/src/io-cache.c
+++ b/xlators/performance/io-cache/src/io-cache.c
@@ -8,6 +8,7 @@
cases as published by the Free Software Foundation.
*/
+#include <math.h>
#include "glusterfs.h"
#include "logging.h"
#include "dict.h"
@@ -2155,7 +2156,7 @@ struct volume_options options[] = {
{ .key = {"cache-size"},
.type = GF_OPTION_TYPE_SIZET,
.min = 4 * GF_UNIT_MB,
- .max = 32 * GF_UNIT_GB,
+ .max = INFINITY,
.default_value = "32MB",
.description = "Size of the read cache."
},
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c
index 4e9c6dcf091..8edf495fcdd 100644
--- a/xlators/performance/quick-read/src/quick-read.c
+++ b/xlators/performance/quick-read/src/quick-read.c
@@ -8,6 +8,7 @@
cases as published by the Free Software Foundation.
*/
+#include <math.h>
#include "quick-read.h"
#include "statedump.h"
#include "quick-read-messages.h"
@@ -1144,7 +1145,7 @@ struct volume_options options[] = {
{ .key = {"cache-size"},
.type = GF_OPTION_TYPE_SIZET,
.min = 0,
- .max = 32 * GF_UNIT_GB,
+ .max = INFINITY,
.default_value = "128MB",
.description = "Size of the read cache."
},