diff options
author | Anuradha Talur <atalur@commvault.com> | 2018-11-20 13:15:26 -0800 |
---|---|---|
committer | Susant Palai <spalai@redhat.com> | 2019-04-10 09:11:15 +0000 |
commit | dc06e4c408187afcc58ebd72386490ad1e58de03 (patch) | |
tree | 44cb31381fa1197cea914cdbc4d5575ec01ec45d /xlators/storage/posix/src/posix-entry-ops.c | |
parent | d837b4518c3148752b2eb4d55d22f22c57aa96c2 (diff) |
storage/posix: changes with respect to cloudsync
Main changes include logic to update iatt buf
with file size from extended attributes in posix
rather than having this logic in cloudsync xlator.
Change-Id: I44f5f8df7a01e496372557fe2f4eff368dbdaa33
fixes: bz#1642168
Signed-off-by: Anuradha Talur <atalur@commvault.com>
Diffstat (limited to 'xlators/storage/posix/src/posix-entry-ops.c')
-rw-r--r-- | xlators/storage/posix/src/posix-entry-ops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix-entry-ops.c b/xlators/storage/posix/src/posix-entry-ops.c index 859159a87b4..240f237a39a 100644 --- a/xlators/storage/posix/src/posix-entry-ops.c +++ b/xlators/storage/posix/src/posix-entry-ops.c @@ -272,6 +272,7 @@ posix_lookup(call_frame_t *frame, xlator_t *this, loc_t *loc, dict_t *xdata) } } + posix_update_iatt_buf(&buf, -1, real_path, xdata); if (priv->update_pgfid_nlinks) { if (!gf_uuid_is_null(loc->pargfid) && !IA_ISDIR(buf.ia_type)) { MAKE_PGFID_XATTR_KEY(pgfid_xattr_key, PGFID_XATTR_KEY_PREFIX, |