-
Notifications
You must be signed in to change notification settings - Fork 218
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
comments: modify comments of src_ino and i_ino #519
Conversation
rafs/src/metadata/layout/v5.rs
Outdated
@@ -914,7 +914,7 @@ pub struct RafsV5Inode { | |||
pub i_digest: RafsDigest, // 32 | |||
/// parent inode number | |||
pub i_parent: u64, | |||
/// from fs stat() | |||
/// rafs inode number, set_ino() from RAFS_ROOT_INODE = 1 |
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.
The comment is a little confusing, could you help to elaberate more?
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.
src_ino is rafs inode number, but not from fs stat().
src_ino is set by function set_ino(), and its number is from const RAFS_ROOT_INODE = 1.
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.
I think for the "/" inode, it's set to RAFS_ROOT_INODE. For other inodes, it should be read from fs by stat().
If so, it would be better to just remove the comments.
3afe1f9
to
95deaca
Compare
@power-more , your pull request has been updated. A new test job will be submitted. Please wait in patience. |
@power-more , the test job has been submitted. Please wait in patience. |
@power-more , The CI test is completed, please check result:
Congratulations, your test job passed! |
rafs/src/metadata/layout/v5.rs
Outdated
@@ -914,7 +914,7 @@ pub struct RafsV5Inode { | |||
pub i_digest: RafsDigest, // 32 | |||
/// parent inode number | |||
pub i_parent: u64, | |||
/// from fs stat() | |||
/// rafs inode number, set from 1 |
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.
How about:
/// Artifact inode number set by the nydus image builder. Start from RAFS_ROOT_INODE = 1.
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.
fix
Signed-off-by: zhaoshang <zhaoshangsjtu@linux.alibaba.com>
95deaca
to
68f3161
Compare
@power-more , your pull request has been updated. A new test job will be submitted. Please wait in patience. |
@power-more , your test job has passed, and no need to test again. |
Signed-off-by: zhaoshang zhaoshangsjtu@linux.alibaba.com