Skip to content

Commit

Permalink
Merge pull request #476 from power-more/prefetch
Browse files Browse the repository at this point in the history
nydus-image: fix some comments
  • Loading branch information
jiangliu authored Jun 9, 2022
2 parents fdee599 + 7916ce4 commit 82c22d2
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 82c22d2

Please sign in to comment.