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:18 -0700
commitcc89e50e19eedf324393798edc0f2aab9442a06e (patch)
treeaebc5bb2460083913756dad1933f49125409740d /xlators
parent567c0cc97198fbfd525834744b653e958cf140de (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 d3ad32237..80995f25b 100644
--- a/xlators/protocol/client/src/client-protocol.c
+++ b/xlators/protocol/client/src/client-protocol.c
@@ -726,7 +726,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);
@@ -793,7 +793,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,