[Rpm-maint] [rpm-software-management/rpm] Add statvfs(3) support to the Lua posix module (PR #4324)
coderabbitai[bot]
notifications at github.com
Tue Sep 8 15:37:54 UTC 2026
coderabbitai[bot] left a comment (rpm-software-management/rpm#4324)
<!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- review_stack_entry_start -->
<a href="https://app.coderabbit.ai/change-stack/rpm-software-management/rpm/pull/4324#gh-light-mode-only"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg" alt="Review Change Stack" width="202" height="32"></a><a href="https://app.coderabbit.ai/change-stack/rpm-software-management/rpm/pull/4324#gh-dark-mode-only"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg" alt="Review Change Stack" width="202" height="32"></a>
<!-- review_stack_entry_end -->
<!-- walkthrough_start -->
<details>
<summary>📝 Walkthrough</summary>
## Walkthrough
Adds `posix.statvfs()` to the POSIX Lua library. The function reports filesystem statistics, supports selected fields, and exposes named filesystem flags. The implementation calls `statvfs()` and returns `nil` on failure. Documentation describes the interface and selectors. Tests verify block size, the `nosuid` flag, and `namemax` consistency with `posix.pathconf()`.
**Suggested reviewers:** `dmnks`
</details>
<!-- walkthrough_end -->
<!-- change_assessment_start -->
**Priority:** ⬇️ Low — Defer the statvfs Lua POSIX extension because it is a narrow API addition with documentation and tests, without elevated product or external urgency.
<!-- change_assessment_commit:"ab224f771f7d7741abef14dfff5b0800bc552dd6" -->
<!-- change_assessment_end -->
<!-- final_review_risk_start -->
**Merge Risk:** _🔵 Low_ · up to `ab224`
<!-- final_review_risk_coverage:{"sourceCommitId":"ab224f771f7d7741abef14dfff5b0800bc552dd6","coveredCommitId":"ab224f771f7d7741abef14dfff5b0800bc552dd6","kind":"reviewed"} -->
This adds Lua filesystem statistics support, but its validation can fail on systems with different root filesystem block sizes or mount flags. Make the assertions environment-independent before merging.
<!-- final_review_risk_end -->
<!-- pre_merge_checks_walkthrough_start -->
<details>
<summary>🚥 Pre-merge checks | ✅ 4 | ❌ 1</summary>
### ❌ Failed checks (1 warning)
| Check name | Status | Explanation | Resolution |
| :----------------: | :--------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- |
| Docstring Coverage | ⚠️ Warning | Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 1 files. (2 skipped: 2 … | Write docstrings for the functions missing them to satisfy the coverage threshold. |
<details>
<summary>✅ Passed checks (4 passed)</summary>
| Check name | Status | Explanation |
| :------------------------: | :------- | :------------------------------------------------------------------------------------------------------------------------------- |
| Title check | ✅ Passed | The title clearly identifies the main change: adding statvfs(3) support to the Lua POSIX module. |
| Description check | ✅ Passed | The description directly relates to the implementation, flag representation, documentation, and tests added by the pull request. |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
</details>
<details>
<summary>Full details: Docstring Coverage</summary>
**Explanation**
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 1 files. (2 skipped: 2 unsupported.)
</details>
</details>
<!-- pre_merge_checks_walkthrough_end -->
<!-- tips_start -->
---
Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=rpm-software-management/rpm&utm_content=4324)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
<details>
<summary>❤️ Share</summary>
- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
</details>
<sub>Comment `@coderabbitai help` to get the list of available commands.</sub>
<!-- tips_end -->
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4324#issuecomment-5587770007
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/4324/c5587770007 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260908/34d0dce4/attachment-0001.htm>
More information about the Rpm-maint
mailing list