Bug 761928 (GLUSTER-196)

Summary: write-behind window size getting set to 0.
Product: [Community] GlusterFS Reporter: Raghavendra G <raghavendra>
Component: write-behindAssignee: Raghavendra G <raghavendra>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 2.0.0CC: gluster-bugs, lakshmipathi
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTNR Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.)