Bug 761928 (GLUSTER-196) - write-behind window size getting set to 0.
Summary: write-behind window size getting set to 0.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-196
Product: GlusterFS
Classification: Community
Component: write-behind
Version: 2.0.0
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Raghavendra G
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-08 17:33 UTC by Raghavendra G
Modified: 2010-04-05 09:36 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: RTNR
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Raghavendra G 2009-08-08 17:33:06 UTC
Due to the way check is done for O_RDONLY in wb_open_cbk and wb_create_cbk, window-size is getting set to 0 for all the files. The correct fix should use O_ACCMODE while checking for O_RDONLY flags.

Fix should also be done in read-ahead and filter.

Comment 1 Anand Avati 2009-08-17 18:38:02 UTC
PATCH: http://patches.gluster.com/patch/969 in release-2.0 (write-behind: use O_ACCMODE while checking for O_RDONLY in flags.)

Comment 2 Anand Avati 2009-08-17 18:38:06 UTC
PATCH: http://patches.gluster.com/patch/970 in release-2.0 (read-ahead: use O_ACCMODE for checking file access modes.)

Comment 3 Anand Avati 2009-08-17 18:38:09 UTC
PATCH: http://patches.gluster.com/patch/971 in release-2.0 (filter: use O_ACCMODE for checking file access modes.)


Note You need to log in before you can comment on or make changes to this bug.