summaryrefslogtreecommitdiffstats
path: root/xlators/protocol
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2009-12-07 07:33:49 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-12-07 05:31:40 -0800
commit2fa7e528f50236355aa29874bd57d96c429ef33f (patch)
tree8a3bd0cd5c2a30603cd79930a5f614daad9cdade /xlators/protocol
parenta12bfdc8f32212354824a1b8dd7b27840518c4dc (diff)
resolver: include RESOLVE_EXACT type for failure case when inode not found
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 315 (generation number support) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=315
Diffstat (limited to 'xlators/protocol')
-rw-r--r--xlators/protocol/server/src/server-resolve.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/protocol/server/src/server-resolve.c b/xlators/protocol/server/src/server-resolve.c
index c4e5a9c57..2eb95e6a4 100644
--- a/xlators/protocol/server/src/server-resolve.c
+++ b/xlators/protocol/server/src/server-resolve.c
@@ -285,7 +285,8 @@ resolve_path_simple (call_frame_t *frame)
goto out;
}
- if (!components[ino_idx].inode && resolve->type == RESOLVE_MUST) {
+ if (!components[ino_idx].inode &&
+ (resolve->type == RESOLVE_MUST || resolve->type == RESOLVE_EXACT)) {
resolve->op_ret = -1;
resolve->op_errno = ENOENT;
goto out;