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
This commit is contained in:
parent
a12bfdc8f3
commit
2fa7e528f5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user