diff options
author | Sakshi Bansal <sabansal@redhat.com> | 2015-11-10 10:27:22 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2016-02-21 22:10:54 -0800 |
commit | e6d8e4fb469edf0e58b14ee02abb1ecd625eb48d (patch) | |
tree | ee0729cc53fe014fe211e067357f2be833ad28ac | |
parent | e5c24b4040d1fe11d92194b4e2277e0587f85e2e (diff) |
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 <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>
Change-Id: I0c4c72e2f5a9f8a7c60ef65251c596b54de89479
BUG: 1285829
Signed-off-by: Sakshi Bansal <sabansal@redhat.com>
Reviewed-on: http://review.gluster.org/13351
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Smoke: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Tested-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 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; } |