Bug #57361
opencephfs: rbytes seems not work correctly
0%
Description
I had two client with the rbytes enabled, one is kclient and another is ceph-fuse client. In kclient after I created a file in the subdir and write some contents to it and in the ceph-fuse client when stating the parent directory I didn't see the stat.size got updated, even I umount the kclient.
I need to wait for a long time or after remount the ceph-fuse client to see the size updated.
Updated by Venky Shankar over 1 year ago
Xiubo Li wrote:
I had two client with the rbytes enabled, one is kclient and another is ceph-fuse client. In kclient after I created a file in the subdir and write some contents to it and in the ceph-fuse client when stating the parent directory I didn't see the stat.size got updated, even I umount the kclient.
I need to wait for a long time or after remount the ceph-fuse client to see the size updated.
Do you have the MDS logs, Xiubo?
Updated by Xiubo Li over 1 year ago
Venky Shankar wrote:
Xiubo Li wrote:
I had two client with the rbytes enabled, one is kclient and another is ceph-fuse client. In kclient after I created a file in the subdir and write some contents to it and in the ceph-fuse client when stating the parent directory I didn't see the stat.size got updated, even I umount the kclient.
I need to wait for a long time or after remount the ceph-fuse client to see the size updated.
Do you have the MDS logs, Xiubo?
No, but I can reproduce it every time.
Updated by Venky Shankar over 1 year ago
- Category set to Correctness/Safety
- Assignee set to Neeraj Pratap Singh
- Target version set to v18.0.0
- Backport set to pacific,quincy
- Component(FS) Client, MDS added
Neeraj, PTAL.
Updated by Neeraj Pratap Singh over 1 year ago
- Subject changed from cpehfs: rbytes seems not work correctly to cephfs: rbytes seems not work correctly
- Priority changed from Normal to Low
Setting the priority to low: rbytes is disabled by default.As directory size is recursive size with rbytes enabled,if we try to get the stats.size, mds lazilly updates the recursive stats.