Skip to content

test(librbf): cover allocation bitmap sector boundaries - #90

Merged
DrPitre merged 1 commit into
nitros9project:mainfrom
tlindner:codex/rbf-bitmap-boundary-tests
Oct 30, 2026
Merged

DrPitre merged 1 commit into
nitros9project:mainfrom
tlindner:codex/rbf-bitmap-boundary-tests

Conversation

@tlindner

Copy link
Copy Markdown
Member

Protect the OS-9/6809 RBF restriction that a file segment must not span allocation bitmap sectors. The existing SAS allocation and segment extension code already enforce this restriction; no library changes are required.

Add eight deterministic regression scenarios combining one- and two-sector clusters, boundaries at cluster 2048 and 4096, and SAS sizes of one and eight clusters. Constrain free space to four clusters before each boundary and sixteen after it, starting with an empty file segment list.

Verify that contiguous extension splits the file into adjacent segments at the boundary, while an eight-cluster SAS allocation skips the short free run before it. Check every segment using cluster-based bitmap sector indices, then close and reopen the file to validate persisted data and confirm that deletion succeeds. Remove each temporary image afterward.

Validation: make -C build/unix succeeded, including all eight unit test suites. The librbf suite passes all 17 tests.

Protect the OS-9/6809 RBF restriction that a file segment must not span
allocation bitmap sectors. The existing SAS allocation and segment
extension code already enforce this restriction; no library changes are
required.

Add eight deterministic regression scenarios combining one- and two-sector
clusters, boundaries at cluster 2048 and 4096, and SAS sizes of one and
eight clusters. Constrain free space to four clusters before each boundary
and sixteen after it, starting with an empty file segment list.

Verify that contiguous extension splits the file into adjacent segments
at the boundary, while an eight-cluster SAS allocation skips the short
free run before it. Check every segment using cluster-based bitmap sector
indices, then close and reopen the file to validate persisted data and
confirm that deletion succeeds. Remove each temporary image afterward.

Validation: make -C build/unix succeeded, including all eight unit test
suites. The librbf suite passes all 17 tests.
@DrPitre
DrPitre merged commit 73d3c91 into nitros9project:main Oct 30, 2026
6 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.

2 participants