From cc89e50e19eedf324393798edc0f2aab9442a06e Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Tue, 7 Jul 2009 20:42:21 +0000 Subject: protocol/client: use translated flags in protocol/client open and create fops Signed-off-by: Anand V. Avati --- xlators/protocol/client/src/client-protocol.c | 4 ++-- 1 file 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, -- cgit