Skip to content

Commit

Permalink
nydus-image: fix some comments
Browse files Browse the repository at this point in the history
Some comments are wrong or not accurate enough, fix them.

Signed-off-by: zhaoshang <zhaoshangsjtu@linux.alibaba.com>
  • Loading branch information
power-more committed Jun 9, 2022
1 parent fdee599 commit 7916ce4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bin/nydus-image/core/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ pub struct Node {
/// Device id associated with the source inode.
///
/// A source directory may contain multiple partitions from different hard disk, so
/// a pair of (dev, read_ino) is needed to uniquely identify an inode from source directory.
/// a pair of (real_ino, dev) is needed to uniquely identify an inode from source directory.
pub src_dev: u64,
/// Inode number of the source inode.
pub src_ino: Inode,
Expand Down
2 changes: 1 addition & 1 deletion src/bin/nydus-image/core/prefetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use crate::node::Node;
pub enum PrefetchPolicy {
None,
/// Readahead will be issued from Fs layer, which leverages inode/chunkinfo to prefetch data
/// from blob no mather where it resides(OSS/Localfs). Basically, it is willing to cache the
/// from blob no matter where it resides(OSS/Localfs). Basically, it is willing to cache the
/// data into blobcache(if exists). It's more nimble. With this policy applied, image builder
/// currently puts readahead files' data into a continuous region within blob which behaves very
/// similar to `Blob` policy.
Expand Down

0 comments on commit 7916ce4

Please sign in to comment.