diff options
author | Emmanuel Dreyfus <manu@netbsd.org> | 2012-10-20 19:30:06 +0200 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-10-20 12:00:26 -0700 |
commit | cf63a76ca03240eb617ca5bd2aa9b3f7abe7b6a4 (patch) | |
tree | e4e705cdb8af7b8de39ee3f3f8e5ee2dfcaf1ea0 | |
parent | 6decc75807caa95ee93d70e8f23119bbada84a44 (diff) |
NetBSD negative timeout missing support workaround
Newer and simplier version: since the default of negative_timeout is 0,
we can just avoid sending a fuse_entry in that case, and this is enough
to work around the problem.
BUG: 764655
Change-Id: Ibfc6230e3cb9871ccade7fb756e61ebc47cb6487
Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org>
Reviewed-on: http://review.gluster.org/4115
Reviewed-by: Anand Avati <avati@redhat.com>
Tested-by: Anand Avati <avati@redhat.com>
-rw-r--r-- | xlators/mount/fuse/src/fuse-bridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index e4628379345..664017d6bef 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -364,7 +364,7 @@ fuse_entry_cbk (call_frame_t *frame, void *cookie, xlator_t *this, "%"PRIu64": %s() %s => -1 (%s)", frame->root->unique, gf_fop_list[frame->root->op], state->loc.path, strerror (op_errno)); - if (op_errno == ENOENT) { + if ((op_errno == ENOENT) && (priv->negative_timeout != 0)) { feo.entry_valid = calc_timeout_sec (priv->negative_timeout); feo.entry_valid_nsec = |