From 847a481ceb626af97a1487c6289cdd92677b212a Mon Sep 17 00:00:00 2001 From: Susant Palai Date: Wed, 19 Mar 2014 17:22:10 +0000 Subject: DHT/Mkdir: Fail mkdir with ENOENT, if parent is not available Change-Id: I54227bcafb6d0d8cf716a679d2a34be7fc916898 BUG: 1078847 Signed-off-by: Susant Palai Reviewed-on: http://review.gluster.org/7306 Reviewed-by: Raghavendra G Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/cluster/dht/src/dht-common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xlators/cluster') diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 3868fc38fd5..d2e1598251b 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -3855,7 +3855,7 @@ dht_link (call_frame_t *frame, xlator_t *this, if (!cached_subvol) { gf_log (this->name, GF_LOG_DEBUG, "no cached subvolume for path=%s", oldloc->path); - op_errno = EINVAL; + op_errno = ENOENT; goto err; } @@ -3864,7 +3864,7 @@ dht_link (call_frame_t *frame, xlator_t *this, gf_log (this->name, GF_LOG_DEBUG, "no subvolume in layout for path=%s", newloc->path); - op_errno = EINVAL; + op_errno = ENOENT; goto err; } @@ -4253,7 +4253,7 @@ dht_mkdir (call_frame_t *frame, xlator_t *this, gf_log (this->name, GF_LOG_DEBUG, "hashed subvol not found for %s", loc->path); - op_errno = EINVAL; + op_errno = ENOENT; goto err; } -- cgit