-
Notifications
You must be signed in to change notification settings - Fork 205
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
rafs: git rid of several unimplemented() #1166
Conversation
@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 <[email protected]>
6916b91
to
818fe47
Compare
@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, |
There was a problem hiding this comment.
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)
?
There was a problem hiding this comment.
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:)
@jiangliu , The CI test is completed, please check result:
Congratulations, your test job passed! |
@jiangliu , The CI test is completed, please check result:
Congratulations, your test job passed! |
The nydus-image check for v5 uses some unimplemented methods of InodeWrapper, which causes panicking at runtime.
Fixes: #1160