summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-11-28 10:52:37 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-11-28 09:58:33 -0800
commit79243bfdeeb328126d30da22fd48756a1bf65dd3 (patch)
tree04d47058a5805394f1fb12c28926727636e0afd3
parent04da2ae78b83e1cb3e14379dd72d694fa03fc5e1 (diff)
performance/quick-read: change the maximum value of max-file-size to 1000KB from 1MB.
- protocol restricts the maximum buffer size that can be received over network to 1MB. Since the buffer holding reply of lookup should also contain the lookup header and other key/value pairs of xattr_reply dict, the maximum file size that can be fetched through dictionary cannot be equal to 1MB. Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 419 (Issues with writing files of size >= 1MB) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=419
-rw-r--r--xlators/performance/quick-read/src/quick-read.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c
index 49c03fa4336..d3e3bb91d10 100644
--- a/xlators/performance/quick-read/src/quick-read.c
+++ b/xlators/performance/quick-read/src/quick-read.c
@@ -2274,14 +2274,14 @@ struct xlator_dumpops dumpops = {
};
struct volume_options options[] = {
- { .key = {"cache-timeout"},
+ { .key = {"cache-timeout"},
.type = GF_OPTION_TYPE_INT,
.min = 1,
.max = 60
},
- { .key = {"max-file-size"},
- .type = GF_OPTION_TYPE_SIZET,
+ { .key = {"max-file-size"},
+ .type = GF_OPTION_TYPE_SIZET,
.min = 0,
- .max = 1 * GF_UNIT_MB
+ .max = 1 * GF_UNIT_KB * 1000,
},
};