Description of problem: It's a correctness related issue that was reported by a developer "inode's dirstat gets updated by request reply, but not by cap message. this is problematic. For example: ... MDS modifies a directory MDS issues CEPH_STAT_CAP_INODE_ALL to client ... user stat(2) the directory cephfs client finds that it has all shared caps locally, it return dirstat.size() as directory size."
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:2375