Skip to content

test: align Guard recovery buffers for direct I/O - #68

Draft
aknvda wants to merge 1 commit into
mainfrom
aniket/fix-guard-test-alignment
Draft

aknvda wants to merge 1 commit into
mainfrom
aniket/fix-guard-test-alignment

Conversation

@aknvda

@aknvda aknvda commented Oct 5, 2026

Copy link
Copy Markdown

The real Guard recovery test can fail while restoring a G3 block because its ordinary ctypes destination is not aligned for O_DIRECT. Linux returns EINVAL even though the file offset and length are aligned.

Overallocate the test buffer and expose a page-aligned ctypes view of the original extent. Keep the allocation alive through replacement shutdown. Production code, direct I/O, and byte-verification assertions are unchanged.

Validation: reproduced the original failure against unchanged main with io_getevents returning -EINVAL; a controlled aligned-buffer run passed. With this fixture change, both real-NIXL Guard recovery parameterizations pass on Linux. The combined NVTX branch plus this isolated fixture fix passes 500 tests, with 1 skipped.

Signed-off-by: aknvda <anikkulkarni@nvidia.com>
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.

1 participant