From 76f70b9ebff03208c5dcce71e9afe511439dd44c Mon Sep 17 00:00:00 2001 From: Sakshi Bansal Date: Tue, 10 Nov 2015 10:27:22 +0530 Subject: dht: set proper errno when hashed subvol is not found Change-Id: I0c4c72e2f5a9f8a7c60ef65251c596b54de89479 BUG: 1279705 Signed-off-by: Sakshi Bansal Reviewed-on: http://review.gluster.org/12559 Tested-by: NetBSD Build System Reviewed-by: Susant Palai Tested-by: Gluster Build System Reviewed-by: Raghavendra G --- xlators/cluster/dht/src/dht-common.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'xlators') 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; } -- cgit