From 9423bdeed169076ebedd9af40b52aaac58c9839e Mon Sep 17 00:00:00 2001 From: Mohammed Rafi KC Date: Tue, 26 Apr 2016 16:59:30 +0530 Subject: gfapi: fill iatt in readdirp_cbk if entry->inode is null If any of dirent have inode as null in readdirp_cbk, which indicates that the stat information is not valid. So for such entries, we send explicit lookup to fill the stat information. Change-Id: I0604bce34583db0bb04b5aae8933766201c6ddad BUG: 1330567 Signed-off-by: Mohammed Rafi KC Reviewed-on: http://review.gluster.org/14079 NetBSD-regression: NetBSD Build System Smoke: Gluster Build System CentOS-regression: Gluster Build System Reviewed-by: Niels de Vos --- libglusterfs/src/gf-dirent.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libglusterfs/src/gf-dirent.h') diff --git a/libglusterfs/src/gf-dirent.h b/libglusterfs/src/gf-dirent.h index 098a66ace15..caa09c1728e 100644 --- a/libglusterfs/src/gf-dirent.h +++ b/libglusterfs/src/gf-dirent.h @@ -61,6 +61,9 @@ void gf_dirent_entry_free (gf_dirent_t *entry); void gf_dirent_free (gf_dirent_t *entries); int gf_link_inodes_from_dirent (xlator_t *this, inode_t *parent, gf_dirent_t *entries); +int +gf_fill_iatt_for_dirent (gf_dirent_t *entry, inode_t *parent, + xlator_t *subvol); void gf_link_inode_from_dirent (xlator_t *this, inode_t *parent, gf_dirent_t *entry); -- cgit