Skip to content

tar_extract: only warn once about xattr ENOTSUP - #311

Merged
cyphar merged 1 commit into
opencontainers:masterfrom
sylabs:redundant-warnings
Jan 28, 2020
Merged

cyphar merged 1 commit into
opencontainers:masterfrom
sylabs:redundant-warnings

Conversation

@dtrudg

@dtrudg dtrudg commented Jan 27, 2020

Copy link
Copy Markdown
Contributor

When a destination filesystem does not support xattrs we are rasing at
least 1 ENOTSUP related warning per file. This is unhelpful, and can
scroll the terminal obscuring more important warnings. Instead, show a
single warning for the first occurrence, with an improved explanation of
the cause.

Signed-off-by: David Trudgian dave@trudgian.net

Comment thread oci/layer/tar_extract.go Resolved
When a destination filesystem does not support xattrs we are rasing at
least 1 ENOTSUP related warning per file. This is unhelpful, and can
scroll the terminal obscuring more important warnings. Instead, show a
single warning for the first occurrence, with an improved explanation of
the cause.

Signed-off-by: David Trudgian <dave@trudgian.net>
@dtrudg
dtrudg force-pushed the redundant-warnings branch from fc60ef7 to a9fd512 Compare January 28, 2020 15:35
Comment thread oci/layer/tar_extract.go Resolved
@cyphar

cyphar commented Jan 28, 2020

Copy link
Copy Markdown
Member

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

⌂ 换网址