-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mds: include nfiles/nsubdirs of directory inode in MClientCaps #21668
Conversation
change_attr(0), | ||
truncate_seq(0), | ||
time_warp_seq(0), | ||
osd_epoch_barrier(oeb), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was accidentally removed. It's initializing osd_epoch_barrier(0)
(the default). Causes: http://tracker.ceph.com/issues/23927
2b00706
to
cbe1b40
Compare
fixed, thanks |
From: /ceph/teuthology-archive/pdonnell-2018-05-01_20:44:02-kcephfs-wip-pdonnell-testing-20180501.191840-testing-basic-smithi/2463226/teuthology.log Because kclient not patched yet? |
patch for kclient is buggy |
previous patch is buggy, it didn't check if cap message contains valid dirstat |
Directory inode's dirstat gets updated by request reply, but not by cap message. This causes problem for following case. 1. MDS modifies a directory 2. MDS issues CEPH_CAP_ANY_SHARED to client 3. The client satifies stat(2) by its cached metadata. Signed-off-by: "Yan, Zheng" <zyan@redhat.com> Fixes: http://tracker.ceph.com/issues/23855
* refs/pull/21668/head: mds: include nfiles/nsubdirs of directory inode in MClientCaps Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Directory inode's dirstat gets updated by request reply, but not by
cap message. This causes problem for following case.
Signed-off-by: "Yan, Zheng" zyan@redhat.com
Fixes: http://tracker.ceph.com/issues/23855