summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2009-07-07 20:42:42 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-07 19:32:19 -0700
commitc392a1e90c6504967da7dc3f4fce5c1009e0034f (patch)
treeb39e83daa8e5ab7bb3d1397ba6afbbd2c05f0fb0
parentcc89e50e19eedf324393798edc0f2aab9442a06e (diff)
protocol/server: use translated flags in protocol/server open and create fops
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
-rw-r--r--xlators/protocol/server/src/server-protocol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/protocol/server/src/server-protocol.c b/xlators/protocol/server/src/server-protocol.c
index 47a3b4b47..e0553a191 100644
--- a/xlators/protocol/server/src/server-protocol.c
+++ b/xlators/protocol/server/src/server-protocol.c
@@ -3765,7 +3765,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,
@@ -3845,7 +3845,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);