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

untar: support pax xattr header #302

Merged
merged 1 commit into from
Dec 15, 2023
Merged

Conversation

yuchen0cc
Copy link
Contributor

remove overlaybd/extfs and use photon/extfs instead.

What this PR does / why we need it:

  1. untar support pax header with "SCHILY.xattr." prefix;
  2. using photon/extfs instead of overlaybd/extfs; (xattr is support in fs: support xattr for extfs and subfs alibaba/PhotonLibOS#298)

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes containerd/accelerated-container-image#251

Please check the following list:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test?
  • Does this change require a documentation update?
  • Does this introduce breaking changes that would require an announcement or bumping the major version?
  • Do all new files have an appropriate license header?

@@ -83,6 +83,14 @@ std::string remove_last_slash(const std::string_view &path) {
return std::string(path);
}

bool has_prefix(const std::string_view &str, const std::string_view &prefix) {
Copy link
Member

Choose a reason for hiding this comment

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

it's better to use estring_view.starts_with

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK

@@ -83,6 +83,14 @@ std::string remove_last_slash(const std::string_view &path) {
return std::string(path);
}

bool has_prefix(const std::string_view &str, const std::string_view &prefix) {
Copy link
Member

Choose a reason for hiding this comment

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

it's better to use estring_view.starts_with

remove overlaybd/extfs and use photon/extfs instead.

Signed-off-by: yuchen.cc <yuchen.cc@alibaba-inc.com>
Copy link
Member

@liulanzheng liulanzheng left a comment

Choose a reason for hiding this comment

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

LGTM

@liulanzheng liulanzheng merged commit 4472ea4 into containerd:main Dec 15, 2023
2 checks passed
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.

[Userspace Convertor] /usr/bin/ping security capability inconsistency
2 participants