Hide Forgot
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.
PATCH: http://patches.gluster.com/patch/969 in release-2.0 (write-behind: use O_ACCMODE while checking for O_RDONLY in flags.)
PATCH: http://patches.gluster.com/patch/970 in release-2.0 (read-ahead: use O_ACCMODE for checking file access modes.)
PATCH: http://patches.gluster.com/patch/971 in release-2.0 (filter: use O_ACCMODE for checking file access modes.)