Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ENOATTR & E2BIG #34

Merged
merged 2 commits into from
Sep 5, 2023
Merged

add ENOATTR & E2BIG #34

merged 2 commits into from
Sep 5, 2023

Conversation

overheadhunter
Copy link
Member

Add two more error codes that may be relevant to correctly implement xattr.

ENOATTR is macOS-specific (BSD-specific, to be exact). On Linux, ENODATA is commonly aliased by ENOATTR, which is why this impl does the same. It is expected to be returned instead of ENODATA when a getxattr can not find the given attr.

E2BIG is expected to be returned by setxattr, when the given value is... too big.

@overheadhunter overheadhunter requested a review from infeo September 4, 2023 19:03
@overheadhunter overheadhunter changed the base branch from develop to main September 4, 2023 19:05
@overheadhunter overheadhunter changed the base branch from main to develop September 4, 2023 19:05
Copy link
Member

@infeo infeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting curiosity.

As a side-note, on the netbsd kernel mailing list exists a converstion about ENODATA vs ENOATTR: https://tech-kern.netbsd.narkive.com/JcRAFrPC/enoattr-vs-enodata

@infeo infeo merged commit f555628 into develop Sep 5, 2023
7 checks passed
@infeo infeo deleted the feature/errno-ENOATTR-E2BIG branch September 5, 2023 11:07
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