Skip to content

tentacle: client: account for mixed quotas in statfs - #66470

Merged
2 commits merged into
ceph:tentaclefrom
joscollin:wip-73871-tentacle
Sep 1, 2026
Merged

2 commits merged into
ceph:tentaclefrom
joscollin:wip-73871-tentacle

Conversation

@joscollin

Copy link
Copy Markdown
Member

In statfs, when the quota root for a dir is discovered,
it uses that dir to base values for max_files and max_bytes.

This can be an issue when a dir is found with only one of two potential quota
fields. Take for instance, a dir with only max_files set and parent dir
has only max_bytes set. During a statfs call, it will then use the max_files
value for provided dir, but does not have a value for max_bytes. In this case,
this behavior will cause the size of the filesystem to be displayed.

Instead, find the quota root for max_files and max_bytes separately. This will
allow for mixed quotas to inherit missing values from its parent. In the above
example, max_files from current dir and max_bytes from parent dir will be
displayed.

Fixes: https://tracker.ceph.com/issues/73487
Signed-off-by: Christopher Hoffman <[email protected]>
(cherry picked from commit dd02ea9)
@joscollin joscollin added this to the tentacle milestone Dec 2, 2025
@joscollin joscollin added the cephfs Ceph File System label Dec 2, 2025
@github-actions github-actions Bot added the tests label Dec 2, 2025
@joscollin

Copy link
Copy Markdown
Member Author

jenkins test make check

Signed-off-by: Christopher Hoffman <[email protected]>
(cherry picked from commit 2b057ec)
@joscollin

Copy link
Copy Markdown
Member Author

jenkins test docs

@joscollin

Copy link
Copy Markdown
Member Author

@joscollin

Copy link
Copy Markdown
Member Author

@batrick batrick modified the milestones: tentacle, v20.2.2 Apr 28, 2026
@batrick batrick added releng-audit-queue Release engineering: queued for backport verification audit. releng-audit-pass Release engineering: passed backport verification audit. and removed pdonnell-tentacle-RFA releng-audit-queue Release engineering: queued for backport verification audit. labels Apr 28, 2026
@batrick batrick removed the releng-audit-pass Release engineering: passed backport verification audit. label May 15, 2026
@batrick batrick modified the milestones: v20.2.2, v20.2.3 May 15, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label May 15, 2026
@yuriw yuriw removed the needs-qa label Jul 1, 2026
@yuriw

yuriw commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

@joscollin pls get +1 approval
@neha-ojha cc:

@batrick batrick added the releng-audit-queue Release engineering: queued for backport verification audit. label Jul 21, 2026
@github-actions github-actions Bot removed the releng-audit-queue Release engineering: queued for backport verification audit. label Jul 21, 2026
@github-actions github-actions Bot added releng-audit-pass Release engineering: passed backport verification audit. and removed releng-audit-pass Release engineering: passed backport verification audit. labels Jul 21, 2026
@batrick batrick modified the milestones: v20.2.3, v20.2.4 Jul 23, 2026

@vshankar vshankar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

batrick added a commit that referenced this pull request Sep 1, 2026
* refs/pull/66470/head:
	test: Add statfs test case for mixed quotas
	client: account for mixed quotas in statfs

Reviewed-by: Venky Shankar <[email protected]>
@batrick batrick closed this pull request by merging all changes into ceph:tentacle in 677f1fb Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System releng-audit-pass Release engineering: passed backport verification audit. tentacle-next tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants