Skip to content

[EROFS] fix the loss of uid and gid - #356

Merged
BigVan merged 1 commit into
containerd:mainfrom
salvete:main
Dec 4, 2024
Merged

[EROFS] fix the loss of uid and gid#356
BigVan merged 1 commit into
containerd:mainfrom
salvete:main

Conversation

@salvete

@salvete salvete commented Dec 3, 2024

Copy link
Copy Markdown
Member

Currently, the uid and gid in the tar file are
lost because the c_uid and c_gid of erofs_cfg are not set to -1.

This patch fixes it.

What this PR does / why we need it:

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 #

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?

Currently, the uid and gid in the tar file are
lost because the `c_uid` and `c_gid` of `erofs_cfg`
are not set to -1.

This patch fixes it.

Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
@BigVan
BigVan merged commit 7ace045 into containerd:main Dec 4, 2024
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.

3 participants