From 5c4ac19e88f5d7954770aceed930ee193c4138b5 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Wed, 22 Sep 2010 10:03:17 +0000 Subject: fuse-resolve: don't resolve fd to new graph for now Signed-off-by: Amar Tumballi Signed-off-by: Vijay Bellur BUG: 1674 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1674 --- xlators/mount/fuse/src/fuse-resolve.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/mount/fuse/src/fuse-resolve.c b/xlators/mount/fuse/src/fuse-resolve.c index dd248f3d9bc..602cc075d45 100644 --- a/xlators/mount/fuse/src/fuse-resolve.c +++ b/xlators/mount/fuse/src/fuse-resolve.c @@ -741,8 +741,12 @@ fuse_resolve_and_resume (fuse_state_t *state, fuse_resume_fn_t fn) /* If the resolve is for 'fd' and its open with 'write' flag set, don't switch to new graph yet */ - if (state->fd && ((state->fd->flags & O_RDWR) || + + /* TODO: fix it later */ + /* if (state->fd && ((state->fd->flags & O_RDWR) || (state->fd->flags & O_WRONLY))) + */ + if (state->fd) goto resume; if (state->loc.path) { -- cgit