Skip to content

fs: handle ENOTSUP error in compareCapabilities function#274

Open
jellor wants to merge 1 commit intocontainerd:mainfrom
jellor:handle-no-xattr
Open

fs: handle ENOTSUP error in compareCapabilities function#274
jellor wants to merge 1 commit intocontainerd:mainfrom
jellor:handle-no-xattr

Conversation

@jellor
Copy link

@jellor jellor commented Jan 8, 2026

commit container image (nerdctl commit) will failed to get xattr in filesystems without xattr support.

FATA[0006] failed to export layer: mount callback failed on /xxx/containerd/tmpmounts/containerd-mount1781253780: mount callback failed on /xxx/tmpmounts/containerd-mount4034463149: failed to write compressed diff: failed to create diff tar stream: failed to get xattr for /xxx/containerd/tmpmounts/containerd-mount4034463149/etc: operation not supported: unknown 

when LGetxattr syscall return ENOTSUP error, continuity should handle it.

commit container image (nerdctl commit) will failed to get xattr in filesystems without xattr support.

```
FATA[0006] failed to export layer: mount callback failed on /xxx/containerd/tmpmounts/containerd-mount1781253780: mount callback failed on /xxx/tmpmounts/containerd-mount4034463149: failed to write compressed diff: failed to create diff tar stream: failed to get xattr for /xxx/containerd/tmpmounts/containerd-mount4034463149/etc: operation not supported: unknown
```

when LGetxattr syscall return ENOTSUP error, continuity should handle it.

Signed-off-by: dong <guodong9211@gmail.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