Skip to content

Commit 2b34a6e

Browse files
committed
typo: rename to affiliated
Signed-off-by: Zhang Tianyang <[email protected]>
1 parent 939715f commit 2b34a6e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

vmm/sandbox/src/cloud_hypervisor/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ impl VM for CloudHypervisorVM {
187187

188188
// update vmm related pids
189189
self.pids.vmm_pid = pid;
190-
self.pids.affilicated_pids.push(virtiofsd_pid);
190+
self.pids.affiliated_pids.push(virtiofsd_pid);
191191
// TODO: add child virtiofsd process
192192
Ok(pid.unwrap_or_default())
193193
}

vmm/sandbox/src/sandbox.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ where
271271
.sandbox_cgroups
272272
.add_process_into_sandbox_cgroups(vmm_pid, Some(vcpu_threads))?;
273273
// move all vmm-related process into sandbox cgroup
274-
for pid in sandbox.vm.pids().affilicated_pids {
274+
for pid in sandbox.vm.pids().affiliated_pids {
275275
sandbox
276276
.sandbox_cgroups
277277
.add_process_into_sandbox_cgroups(pid, None)?;

vmm/sandbox/src/stratovirt/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ impl VM for StratoVirtVM {
149149
self.pids.vmm_pid = Some(vmm_pid);
150150
if let Some(virtiofsd) = &self.virtiofs_daemon {
151151
if let Some(pid) = virtiofsd.pid {
152-
self.pids.affilicated_pids.push(pid);
152+
self.pids.affiliated_pids.push(pid);
153153
}
154154
}
155155

vmm/sandbox/src/vm.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,5 +210,5 @@ pub struct VcpuThreads {
210210
#[derive(Debug, Default, Clone, Serialize, Deserialize)]
211211
pub struct Pids {
212212
pub vmm_pid: Option<u32>,
213-
pub affilicated_pids: Vec<u32>,
213+
pub affiliated_pids: Vec<u32>,
214214
}

0 commit comments

Comments
 (0)