Skip to content

fix(fs): use combined usage for OverlayFs write limits#458

Merged
chaliy merged 1 commit intomainfrom
claude/fix-419-Y2nIj
Mar 2, 2026
Merged

fix(fs): use combined usage for OverlayFs write limits#458
chaliy merged 1 commit intomainfrom
claude/fix-419-Y2nIj

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Mar 1, 2026

Summary

  • check_write_limits() was checking only upper-layer usage against limits
  • Now uses compute_usage() to check against combined upper+lower usage
  • Prevents exceeding limits when lower layer has existing data

Test plan

  • test_write_limits_include_lower_layer - write rejected when combined usage exceeds limit
  • test_file_count_limit_includes_lower - file count limit includes lower layer files

Closes #419

check_write_limits() was checking only upper-layer usage against limits.
If the lower layer had 80MB and the combined limit was 100MB, the upper
layer was allowed another full 100MB. Now uses compute_usage() to check
against combined upper+lower usage.

Closes #419
@chaliy chaliy force-pushed the claude/fix-419-Y2nIj branch from 3232cb4 to 7a3c083 Compare March 2, 2026 00:27
@chaliy chaliy merged commit 9b9386a into main Mar 2, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[M-5] OverlayFs check_write_limits only checks upper layer

2 participants