summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2009-07-07 20:42:21 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-07 19:32:17 -0700
commita2205684e2ea21e33dac00b40a0314af045ad6be (patch)
tree478c136b65b56ce0a3274374eaa46720d49714b6 /xlators
parent9ec22fd9fc28684b7e2093b4c67d449c7f021623 (diff)
protocol/client: use translated flags in protocol/client open and create fops
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/protocol/client/src/client-protocol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/protocol/client/src/client-protocol.c b/xlators/protocol/client/src/client-protocol.c
index c912c7746..599872456 100644
--- a/xlators/protocol/client/src/client-protocol.c
+++ b/xlators/protocol/client/src/client-protocol.c
@@ -655,7 +655,7 @@ client_create (call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t flags,
req = gf_param (hdr);
- req->flags = hton32 (flags);
+ req->flags = hton32 (gf_flags_from_flags (flags));
req->mode = hton32 (mode);
req->par = hton64 (par);
strcpy (req->path, loc->path);
@@ -722,7 +722,7 @@ client_open (call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t flags,
req = gf_param (hdr);
req->ino = hton64 (ino);
- req->flags = hton32 (flags);
+ req->flags = hton32 (gf_flags_from_flags (flags));
strcpy (req->path, loc->path);
ret = protocol_client_xfer (frame, this,