diff options
author | Sakshi Bansal <sabansal@redhat.com> | 2015-11-10 10:27:22 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2015-11-17 01:44:21 -0800 |
commit | 76f70b9ebff03208c5dcce71e9afe511439dd44c (patch) | |
tree | cdb41cee8fb8a7f4d22108efcf5209cf2d062f98 | |
parent | 9f2a81c4796c61c42660ff3407ca12ec4f137593 (diff) |
dht: set proper errno when hashed subvol is not found
Change-Id: I0c4c72e2f5a9f8a7c60ef65251c596b54de89479
BUG: 1279705
Signed-off-by: Sakshi Bansal <sabansal@redhat.com>
Reviewed-on: http://review.gluster.org/12559
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Susant Palai <spalai@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
-rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 982b155d57c..3ae9502430e 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -5475,7 +5475,7 @@ dht_mknod (call_frame_t *frame, xlator_t *this, gf_msg_debug (this->name, 0, "no subvolume in layout for path=%s", loc->path); - op_errno = ENOENT; + op_errno = EIO; goto err; } @@ -5584,7 +5584,7 @@ dht_symlink (call_frame_t *frame, xlator_t *this, gf_msg_debug (this->name, 0, "no subvolume in layout for path=%s", loc->path); - op_errno = ENOENT; + op_errno = EIO; goto err; } @@ -5888,7 +5888,7 @@ dht_link (call_frame_t *frame, xlator_t *this, gf_msg_debug (this->name, 0, "no subvolume in layout for path=%s", newloc->path); - op_errno = ENOENT; + op_errno = EIO; goto err; } @@ -6381,7 +6381,7 @@ dht_create (call_frame_t *frame, xlator_t *this, "no subvolume in layout for path=%s", loc->path); - op_errno = ENOENT; + op_errno = EIO; goto err; } @@ -6674,7 +6674,7 @@ dht_mkdir (call_frame_t *frame, xlator_t *this, gf_msg_debug (this->name, 0, "hashed subvol not found for %s", loc->path); - op_errno = ENOENT; + op_errno = EIO; goto err; } |