summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnand Avati <avati@redhat.com>2013-04-28 02:01:01 -0700
committerVijay Bellur <vbellur@redhat.com>2013-05-25 11:36:05 -0700
commit79387af286421c0668f21a2c34adc9f18f6da464 (patch)
tree686cba9e9ab86078a7c8963e9ee6ac02f7edba0f
parent5b2117650a8c8e83ce9ea6f325f8e63053a1af2c (diff)
syncop: copy inode pointer in readdirplus
Change-Id: I9ab2b8ac2da9fe13f56b8b08f715a0b603ece0cb BUG: 953694 Signed-off-by: Anand Avati <avati@redhat.com> Reviewed-on: http://review.gluster.org/4930 Reviewed-by: Vijay Bellur <vbellur@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
-rw-r--r--libglusterfs/src/syncop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/syncop.c b/libglusterfs/src/syncop.c
index 485a05563..0a1138b59 100644
--- a/libglusterfs/src/syncop.c
+++ b/libglusterfs/src/syncop.c
@@ -802,6 +802,8 @@ entry_copy (gf_dirent_t *source)
sink->d_type = source->d_type;
sink->d_stat = source->d_stat;
+ if (source->inode)
+ sink->inode = inode_ref (source->inode);
return sink;
}