Page file allocation, reads and writes
Proposed team layout: 8 KiB pages, little-endian fields, no native struct dumps. Review before coding; the course supplies an optional page-manager starter.
Contract
| Field | Value |
|---|---|
| Specification | STORE-001 |
| Module | storage |
| Scope | Required implementation or delivery |
| Milestone | M1, due 2026-12-06 |
| Owner role | Storage / search — sjr24 |
| Implementation | Planned; scaffold only |
| Contract review | Team review required before implementation |
Interface
PageFile.open/allocate/read/write/close
These are proposed C++ design contracts, not an already implemented API. Shared types and ownership define the intended module boundaries.
Dependencies
Acceptance checklist
- [ ] Use fixed-size pages with versioned file header and bounds checks
- [ ] Create/open/close files and round-trip multiple pages on Linux
- [ ] Handle truncated files and I/O failure explicitly, never silent zero records
Verification
Use focused module checks plus the integration scenario above; no separate course score is claimed.
Completion rule
Link this spec and its GitLab issue in an MR into develop. Include relevant Linux evidence, obtain the other teammate’s review, merge, delete the feature branch, and close the issue. A page describes intended behavior; the GitLab issue and merged code determine completion.