summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix.c
diff options
context:
space:
mode:
authorvmallika <vmallika@redhat.com>2015-08-07 15:51:53 +0530
committerRaghavendra G <rgowdapp@redhat.com>2015-08-16 21:25:45 -0700
commitf54594753ccecf43b1d501a24374cad18e244127 (patch)
tree1864eb111a7ed37bb0ca3d211105595051f124e9 /xlators/storage/posix/src/posix.c
parent6d3d4dba5276aea924ec275ae00b69c70fa975c0 (diff)
posix: posix_make_ancestryfromgfid shouldn't log ENOENT
This is a backport of http://review.gluster.org/11861 posix_make_ancestryfromgfid shouldn't log ENOENT and it should set proper op_errno > Change-Id: I8a87f30bc04d33cab06c91c74baa9563a1c7b45d > BUG: 1251449 > Signed-off-by: vmallika <vmallika@redhat.com> > Reviewed-on: http://review.gluster.org/11861 > Tested-by: NetBSD Build System <jenkins@build.gluster.org> > Tested-by: Gluster Build System <jenkins@build.gluster.com> > Reviewed-by: Manikandan Selvaganesh <mselvaga@redhat.com> > Reviewed-by: Raghavendra G <rgowdapp@redhat.com> Change-Id: Iefe010117e64586ac6b499459286721b0065cea8 BUG: 1253260 Signed-off-by: vmallika <vmallika@redhat.com> Reviewed-on: http://review.gluster.org/11910 Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix.c')
-rw-r--r--xlators/storage/posix/src/posix.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index d16794f9ba5..ec13a083d0d 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -3515,7 +3515,8 @@ posix_get_ancestry_directory (xlator_t *this, inode_t *leaf_inode,
type | POSIX_ANCESTRY_PATH,
leaf_inode->gfid,
handle_size, priv->base_path,
- leaf_inode->table, &inode, xdata);
+ leaf_inode->table, &inode, xdata,
+ op_errno);
if (ret < 0)
goto out;
@@ -3771,7 +3772,7 @@ posix_get_ancestry_non_directory (xlator_t *this, inode_t *leaf_inode,
handle_size,
priv->base_path,
leaf_inode->table,
- &parent, xdata);
+ &parent, xdata, op_errno);
if (op_ret < 0) {
goto next;
}