From 2d6dc07c934ee3b65f320d54714939fd98e84008 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Sat, 28 Nov 2009 10:53:40 +0000 Subject: 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 Signed-off-by: Anand V. Avati BUG: 419 (Issues with writing files of size >= 1MB) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=419 --- xlators/performance/quick-read/src/quick-read.c | 8 ++++---- 1 file 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 a8b6ecbe7..e9a4124fb 100644 --- a/xlators/performance/quick-read/src/quick-read.c +++ b/xlators/performance/quick-read/src/quick-read.c @@ -2314,14 +2314,14 @@ struct xlator_cbks cbks = { }; 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, }, }; -- cgit