Repository navigation
Handle NetBSD EFTYPE for replaced soft-RW protocol directories - #859
Merged
Merged
Conversation
NetBSD cannot atomically exchange marker names, so stale recovery leaves the marker in place. Gate takeover tests on that capability and assert that the marker stays put. NetBSD's /dev/fd lists only descriptors 0-63. Count up to the process limit to avoid missing database probes in a busy suite.
gaborbernat
enabled auto-merge (squash)
October 18, 2026 16:47
gaborbernat
approved these changes
Oct 18, 2026
This was referenced Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Treat NetBSD's
EFTYPEfrom a refused no-follow protocol-directory open like the existingELOOP/ENOTDIRcases, so soft reader/writer heartbeat reports lost ownership rather than a transient refresh error. The no-follow open and unrelated I/O error handling stay in place.The two regression cases replace real protocol directories with symlinks, call the host's actual
os.open, and translate its refusal to the documented NetBSD errno. They verify lost ownership and an untouched target. This addresses the protocol-tree classification subset of #858; native NetBSD is not tested here, and the rest of that report remains out of scope. See NetBSD open(2).Validation on macOS arm64 / CPython 3.13.1:
AI assistance was used for implementation, tests and documentation; verification and independent review were automated. This does not claim owner human study or human review.