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

rafs: git rid of several unimplemented() #1166

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

jiangliu
Copy link
Collaborator

The nydus-image check for v5 uses some unimplemented methods of InodeWrapper, which causes panicking at runtime.

Fixes: #1160

@jiangliu jiangliu requested a review from a team as a code owner March 21, 2023 07:45
@jiangliu jiangliu requested review from bergwolf, liubin and liubogithub and removed request for a team March 21, 2023 07:45
@anolis-bot
Copy link
Collaborator

@jiangliu , a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/58185

The nydus-image check for v5 uses some unimplemented methods of
InodeWrapper, which causes panicking at runtime.

Fixes: dragonflyoss#1160

Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
@jiangliu jiangliu force-pushed the inode-wrapper-unimplemented branch from 6916b91 to 818fe47 Compare March 21, 2023 07:45
@anolis-bot
Copy link
Collaborator

@jiangliu , the code has been updated, so a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/58187

@@ -338,7 +338,7 @@ impl InodeWrapper {
match self {
InodeWrapper::V5(i) => i.i_mtime,
InodeWrapper::V6(i) => i.i_mtime,
InodeWrapper::Ref(_i) => unimplemented!(),
InodeWrapper::Ref(i) => i.get_attr().mtime,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it necessary to implement it in other methods like fn gid(&self), fn uid(&self)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That could be an following-on optimization:)

@anolis-bot
Copy link
Collaborator

@jiangliu , The CI test is completed, please check result:

Test CaseTest Result
build rust golang image✅ SUCCESS
compile nydusd✅ SUCCESS
compile ctr remote✅ SUCCESS
compile nydus snapshotter✅ SUCCESS
run container with rafs✅ SUCCESS
run container with zran✅ SUCCESS
run container with rafs and compile linux✅ SUCCESS

Congratulations, your test job passed!

@anolis-bot
Copy link
Collaborator

@jiangliu , The CI test is completed, please check result:

Test CaseTest Result
build rust golang image✅ SUCCESS
compile nydusd✅ SUCCESS
compile ctr remote✅ SUCCESS
compile nydus snapshotter✅ SUCCESS
run container with rafs✅ SUCCESS
run container with zran✅ SUCCESS
run container with rafs and compile linux✅ SUCCESS

Congratulations, your test job passed!

@imeoer imeoer merged commit 0cfd7f6 into dragonflyoss:master Mar 21, 2023
@jiangliu jiangliu deleted the inode-wrapper-unimplemented branch March 28, 2023 01:52
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.

Fail to use nydus-image check -v
3 participants