From e6d8e4fb469edf0e58b14ee02abb1ecd625eb48d 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 Backport of http://review.gluster.org/#/c/12559/ > 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 Change-Id: I0c4c72e2f5a9f8a7c60ef65251c596b54de89479 BUG: 1285829 Signed-off-by: Sakshi Bansal Reviewed-on: http://review.gluster.org/13351 CentOS-regression: Gluster Build System Smoke: Gluster Build System NetBSD-regression: NetBSD Build System Reviewed-by: Raghavendra G Tested-by: Raghavendra G --- xlators/cluster/dht/src/dht-common.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'xlators/cluster/dht/src') diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index b65fe9077ee..242e1798753 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -5489,7 +5489,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; } @@ -5598,7 +5598,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; } @@ -5902,7 +5902,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; } @@ -6475,7 +6475,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; } @@ -6768,7 +6768,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