summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-11-28 10:53:40 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-11-28 22:50:55 -0800
commit2d6dc07c934ee3b65f320d54714939fd98e84008 (patch)
tree20584adc424827060f99f65f33be2fb74cbe3034 /xlators
parentad5e0dc127a85027d5d2f8a26e746f4fdcf5e9f4 (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
Diffstat (limited to 'xlators')
-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 a8b6ecbe73f..e9a4124fbd8 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,
},
};