Hide Forgot
Multiple kinds of failures will set op_ret correctly, but a failure on the open itself only sets _fd, not op_ret. Thus, callers who check for failures by checking op_ret might not see them. The attached patch fixes this.
PATCH: http://patches.gluster.com/patch/2725 in master (storage/posix: Set op_ret to -1 when open fails.)
PATCH: http://patches.gluster.com/patch/2726 in release-2.0 (storage/posix: Set op_ret to -1 when open fails.)
Err..regression test is required. I hit this when a open(2) is called for a directory without the O_DIRECTORY flag.