Skip to content

Commit

Permalink
Merge pull request kata-containers#8169 from openanolis/chao/fix_typo…
Browse files Browse the repository at this point in the history
…_shm

runtime-rs: fix a typo in shm
  • Loading branch information
studychao authored Nov 10, 2023
2 parents 820b578 + afb002c commit a62fb83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime-rs/crates/resource/src/volume/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl VolumeResource {
// handle mounts
for m in oci_mounts {
let read_only = m.options.iter().any(|opt| opt == "ro");
let volume: Arc<dyn Volume> = if shm_volume::is_shim_volume(m) {
let volume: Arc<dyn Volume> = if shm_volume::is_shm_volume(m) {
let shm_size = shm_volume::DEFAULT_SHM_SIZE;
Arc::new(
shm_volume::ShmVolume::new(m, shm_size)
Expand Down
2 changes: 1 addition & 1 deletion src/runtime-rs/crates/resource/src/volume/shm_volume.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,6 @@ impl Volume for ShmVolume {
}
}

pub(crate) fn is_shim_volume(m: &oci::Mount) -> bool {
pub(crate) fn is_shm_volume(m: &oci::Mount) -> bool {
m.destination == "/dev/shm" && m.r#type != KATA_EPHEMERAL_DEV_TYPE
}

0 comments on commit a62fb83

Please sign in to comment.