[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gluster-devel] patch
From: |
prithu |
Subject: |
[Gluster-devel] patch |
Date: |
Tue, 24 Jun 2008 01:53:14 -0700 (PDT) |
User-agent: |
SquirrelMail/1.4.9a |
Hi,
Here is a patch for moderation.
PATCH
-----------------------------------------------------------------------------*
local directory is at
address@hidden/glusterfs--mainline--3.0--patch-198
* comparing to address@hidden/glusterfs--mainline--3.0--patch-198
M xlators/performance/write-behind/src/write-behind.c
* modified files
--- orig/xlators/performance/write-behind/src/write-behind.c
+++ mod/xlators/performance/write-behind/src/write-behind.c
@@ -1316,11 +1316,17 @@
return -1;
}
}
+ if (conf->window_size == 0){
+ gf_log (this->name,
+ GF_LOG_ERROR,
+ "WARNING: window-size not specified -- Setting it tobe equal to the
aggregate-size -- please check the spec-file if this is not intended");
+ conf->window_size = conf->aggregate_size;
+ }
if (conf->window_size < conf->aggregate_size) {
gf_log (this->name,
GF_LOG_ERROR,
- "FATAL: window-size (%d) is less than aggregate-size (%d)",
conf->window_size, conf->aggregate_size);
+ "FATAL: The aggregate-size (%d) cannot be more than the window-size
(%d)", conf->aggregate_size, conf->window_size);
FREE (conf);
return -1;
}
--------------------------------------------------------------------------
Prithu
- [Gluster-devel] patch,
prithu <=