Bug 761885 (GLUSTER-153) - protocol should translate and untranslate only the flags that are valid
Summary: protocol should translate and untranslate only the flags that are valid
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-153
Product: GlusterFS
Classification: Community
Component: protocol
Version: mainline
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Vijay Bellur
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-20 09:30 UTC by Basavanagowda Kanur
Modified: 2010-01-28 06:52 UTC (History)
3 users (show)

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


Attachments (Terms of Use)

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.


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