From 45dc9a636f085d0cc2a86b949e86afedca411203 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Tue, 7 Jul 2009 20:42:42 +0000 Subject: protocol/server: use translated flags in protocol/server open and create fops Signed-off-by: Anand V. Avati --- xlators/protocol/server/src/server-protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xlators/protocol/server/src/server-protocol.c b/xlators/protocol/server/src/server-protocol.c index 7097530b..f0dd2e88 100644 --- a/xlators/protocol/server/src/server-protocol.c +++ b/xlators/protocol/server/src/server-protocol.c @@ -3698,7 +3698,7 @@ server_create (call_frame_t *frame, xlator_t *bound_xl, state->bname = req->bname + pathlen; state->mode = ntoh32 (req->mode); - state->flags = ntoh32 (req->flags); + state->flags = gf_flags_to_flags (ntoh32 (req->flags)); } ret = server_loc_fill (&(state->loc), state, @@ -3778,7 +3778,7 @@ server_open (call_frame_t *frame, xlator_t *bound_xl, state->ino = ntoh64 (req->ino); state->path = req->path; pathlen = STRLEN_0(state->path); - state->flags = ntoh32 (req->flags); + state->flags = gf_flags_to_flags (ntoh32 (req->flags)); } ret = server_loc_fill (&(state->loc), state, state->ino, 0, NULL, state->path); -- cgit