summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2011-01-27 02:50:38 +0000
committerAnand V. Avati <avati@dev.gluster.com>2011-01-27 12:18:11 -0800
commitcbd61752ffefab6b42d29057e0f5b5e59191d51d (patch)
treee2b7264ef8b2d9ed5bf6a4dbf9b042534044cd48
parent066b1809876ba156d925edcb8fb470ee90319d3c (diff)
performance/io-cache: disable caching if indicated by NFS.v3.1.2gsyncqa4
- wbflags - which contain flags to disable caching - passed by NFS were not stored in local by ioc_open, there by causing failure of io-cache to honour these flags. Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2289 ([3.1.2qa3] EIO while reading & writing from a file concurrently) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2289
-rw-r--r--xlators/performance/io-cache/src/io-cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c
index 7adfaa4..4faf1d0 100644
--- a/xlators/performance/io-cache/src/io-cache.c
+++ b/xlators/performance/io-cache/src/io-cache.c
@@ -797,6 +797,7 @@ ioc_open (call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t flags,
local->flags = flags;
local->file_loc.path = loc->path;
local->file_loc.inode = loc->inode;
+ local->wbflags = wbflags;
frame->local = local;