Project

General

Profile

Actions

Bug #23855

closed

mds: MClientCaps should carry inode's dirstat

Added by Zheng Yan about 6 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
Correctness/Safety
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

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.


Related issues 1 (0 open1 closed)

Copied to CephFS - Backport #24050: luminous: mds: MClientCaps should carry inode's dirstatResolvedPrashant DActions
Actions

Also available in: Atom PDF