From 79387af286421c0668f21a2c34adc9f18f6da464 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Sun, 28 Apr 2013 02:01:01 -0700 Subject: syncop: copy inode pointer in readdirplus Change-Id: I9ab2b8ac2da9fe13f56b8b08f715a0b603ece0cb BUG: 953694 Signed-off-by: Anand Avati Reviewed-on: http://review.gluster.org/4930 Reviewed-by: Vijay Bellur Tested-by: Gluster Build System --- libglusterfs/src/syncop.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libglusterfs/src') 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; } -- cgit