incus-mirror/shared/idmap
Stéphane Graber 54a122eb92
shared/idmap: Skip xattrs on EINVAL
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 <stgraber@stgraber.org>
Sponsored-by: https://webdock.io
2026-03-11 22:16:48 -04:00
..
cgo.go internal/idmap: Move to shared/idmap 2023-12-14 22:27:37 -05:00
entry.go shared/idmap: Don't needlessly use format string functions 2025-08-11 01:12:55 -04:00
internal_linux.go shared/idmap: Skip xattrs on EINVAL 2026-03-11 22:16:48 -04:00
range.go shared/idmap: Properly capitalize 2024-01-05 18:58:39 -05:00
set_linux.go shared/idmap: Simplify code by using modern constructs 2025-08-11 01:12:20 -04:00
set_load.go shared/idmap: Don't needlessly use format string functions 2025-08-11 01:12:55 -04:00
set_sort.go shared/idmap: Introduce set_sort 2024-01-05 21:30:45 -05:00
set_test.go shared/idmap: Run tests on all platforms 2024-01-05 21:30:47 -05:00
set.go shared/idmap: Don't needlessly use format string functions 2025-08-11 01:12:55 -04:00
shift_linux.go shared/idmap: Skip ACLs that are out of range 2025-08-12 19:32:03 -04:00
utils.go shared/idmap: Rename is_between to isBetween 2024-01-05 18:58:28 -05:00