diff options
author | Anand Avati <avati@redhat.com> | 2013-04-28 02:01:01 -0700 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-06-08 14:50:48 -0700 |
commit | 9f6cb68802c197cc9b788a589c97c8bb71be2804 (patch) | |
tree | 897e4d80858dc18b6d65363c65ca61db6ea91770 /libglusterfs | |
parent | d2370046c01aa20f00f5032a981579dd2d782c87 (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/5161
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/syncop.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/syncop.c b/libglusterfs/src/syncop.c index 74166f1397f..9dbce8d542c 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; } |