summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorSusant Palai <spalai@redhat.com>2014-03-19 17:22:10 +0000
committerVijay Bellur <vbellur@redhat.com>2014-05-28 10:29:35 -0700
commit847a481ceb626af97a1487c6289cdd92677b212a (patch)
treeae68ed340b1144453d196669cba2f4ff79b63a3d /xlators
parent3023a363bdf10675daa6eb59179f53edfc66db7a (diff)
DHT/Mkdir: Fail mkdir with ENOENT, if parent is not available
Change-Id: I54227bcafb6d0d8cf716a679d2a34be7fc916898 BUG: 1078847 Signed-off-by: Susant Palai <spalai@redhat.com> Reviewed-on: http://review.gluster.org/7306 Reviewed-by: Raghavendra G <rgowdapp@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/dht/src/dht-common.c6
1 files changed, 3 insertions, 3 deletions
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;
}