From de11b4a476b297129065bc7477229e57643ac196 Mon Sep 17 00:00:00 2001 From: Anuradha Talur Date: Wed, 24 Apr 2019 12:06:23 -0700 Subject: cloudsync: Make readdirp return stat info of all the dirents This change got missed while the initial changes were sent. Should have been a part of : https://review.gluster.org/#/c/glusterfs/+/21757/ Gist of the change: Function that fills in stat info for dirents is invoked in readdirp in posix when cloudsync populates xdata request with GF_CS_OBJECT_STATUS. Change-Id: Ide0c4e80afb74cd2120f74ba934ed40123152d69 updates: bz#1642168 Signed-off-by: Anuradha Talur --- xlators/storage/posix/src/posix-inode-fd-ops.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/storage') diff --git a/xlators/storage/posix/src/posix-inode-fd-ops.c b/xlators/storage/posix/src/posix-inode-fd-ops.c index f96f65400b2..c12856d4764 100644 --- a/xlators/storage/posix/src/posix-inode-fd-ops.c +++ b/xlators/storage/posix/src/posix-inode-fd-ops.c @@ -5491,6 +5491,8 @@ posix_readdirp_fill(xlator_t *this, fd_t *fd, gf_dirent_t *entries, continue; } + posix_update_iatt_buf(&stbuf, -1, hpath, dict); + if (!inode) inode = inode_find(itable, stbuf.ia_gfid); -- cgit