Skip to content

Commit

Permalink
rafs: fix some comments
Browse files Browse the repository at this point in the history
Some comments are wrong or not well-formated, fix them.

Signed-off-by: bin liu <bin@hyper.sh>
  • Loading branch information
liubin committed Mar 15, 2022
1 parent 190ed82 commit 3f3b5ff
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rafs/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fn default_amplify_io() -> u32 {
/// Configuration information for filesystem data prefetch.
#[derive(Clone, Default, Deserialize)]
pub struct FsPrefetchControl {
/// Whether the filesystem layer data prefetch is enable or not.
/// Whether the filesystem layer data prefetch is enabled or not.
#[serde(default)]
pub enable: bool,

Expand Down
2 changes: 1 addition & 1 deletion rafs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//! by chunk content digest value. When Rafs file is used for container images, Rafs metadata blob
//! contains all filesystem metadatas, such as directory, file name, permission etc. Actually file
//! contents are divided into chunks and stored into data blobs. Rafs may built one data blob for
//! each container image layer or build a single data blob for the whole image, according to
//! each container image layer or build a single data blob for the whole image, according to
//! building options.
//!
//! There are several versions of Rafs filesystem defined:
Expand Down
1 change: 0 additions & 1 deletion rafs/src/metadata/direct_v6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ impl DirectMappingState {
base: std::ptr::null(),
end: std::ptr::null(),
size: 0,
// mmapped_inode_table: false,
validate_digest,
}
}
Expand Down
2 changes: 1 addition & 1 deletion rafs/src/metadata/layout/v6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ impl RafsV6SuperBlock {
self.magic() == EROFS_SUPER_MAGIC_V1
}

/// Get maximum ino.
/// Set number of inodes.
pub fn set_inos(&mut self, inos: u64) {
self.s_inos = inos.to_le();
}
Expand Down

0 comments on commit 3f3b5ff

Please sign in to comment.