Skip to content

shared/idmap: Skip xattrs on EINVAL#2503

Merged
stgraber merged 1 commit intolxc:mainfrom
stgraber:idmap
Sep 24, 2025
Merged

shared/idmap: Skip xattrs on EINVAL#2503
stgraber merged 1 commit intolxc:mainfrom
stgraber:idmap

Conversation

@stgraber
Copy link
Copy Markdown
Member

When parsing extended attributes, we may be getting EINVAL when run on ZFS.

This appears to be when dealing with ZFS namespaced xattrs and despite being real root with all capabilities, there appears to be no way to read or even clear those attributes.

So instead of crashing mid-shift, let's just log them and move on.

Sponsored-by: https://webdock.io

When parsing extended attributes, we may be getting EINVAL when run on ZFS.

This appears to be when dealing with ZFS namespaced xattrs and despite
being real root with all capabilities, there appears to be no way to
read or even clear those attributes.

So instead of crashing mid-shift, let's just log them and move on.

Signed-off-by: Stéphane Graber <[email protected]>
Sponsored-by: https://webdock.io
@stgraber stgraber merged commit f7585b1 into lxc:main Sep 24, 2025
65 of 68 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants