diff options
| -rw-r--r-- | xlators/mount/fuse/src/fuse-bridge.c | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index 0f672286c06..ff5baa15fc3 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -1005,6 +1005,13 @@ fuse_fd_cbk (call_frame_t *frame, void *cookie, xlator_t *this,                  fd_bind (fd);          } else {          err: +                /* OPEN(DIR) being an operation on inode should never fail with +                 * ENOENT. If gfid is not present, the appropriate error is +                 * ESTALE. +                 */ +                if (op_errno == ENOENT) +                        op_errno = ESTALE; +                  gf_log ("glusterfs-fuse", GF_LOG_WARNING,                          "%"PRIu64": %s() %s => -1 (%s)", frame->root->unique,                          gf_fop_list[frame->root->op], state->loc.path,  | 
