Bug 761885 (GLUSTER-153)

Summary: protocol should translate and untranslate only the flags that are valid
Product: [Community] GlusterFS Reporter: Basavanagowda Kanur <gowda>
Component: protocolAssignee: Vijay Bellur <vbellur>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: mainlineCC: aavati, gluster-bugs, shehjart
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: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Basavanagowda Kanur 2009-07-20 09:30:46 UTC
flags for open() and creat() include platform specific and also platform version specific options. 

protocol should try to translate only those flags which are valid on the client side. (client side does not necessarily mean 'the machine on which mount-point exists').

for example, a client running linux-2.6.20 will omit O_CLOEXEC flag, even if the server runs linux-2.6.30. 

protocol untranslate should untranslate only those flags which are valid on the server side. (server side does not necessarily mean 'the machine on which storage/posix exists').

for example, a server running linux-2.4.9 will omit O_DIRECT flag, even if the client runs linux-2.6.0

NOTE: this might lead to omitting of multiple flags for open(), creat().

Comment 1 Shehjar Tikoo 2010-01-28 03:52:19 UTC
This bug has been reported to be fixed as part of another older bug where flags on OpenSolaris were of a different value than our #defines.