libs/kata-types: replace tabs by spaces in comments

Replace tabs by spaces in the comments of file
libs/kata-types/src/annotations/mod.rs.

Fixes: #5115

Signed-off-by: Bin Liu <bin@hyper.sh>
This commit is contained in:
Bin Liu 2022-09-06 17:32:57 +08:00
parent 662ce3d6f2
commit 50f9126153

View File

@ -177,7 +177,7 @@ pub const KATA_ANNO_CFG_HYPERVISOR_FIRMWARE_HASH: &str =
/// A sandbox annotation to specify cpu specific features. /// A sandbox annotation to specify cpu specific features.
pub const KATA_ANNO_CFG_HYPERVISOR_CPU_FEATURES: &str = pub const KATA_ANNO_CFG_HYPERVISOR_CPU_FEATURES: &str =
"io.katacontainers.config.hypervisor.cpu_features"; "io.katacontainers.config.hypervisor.cpu_features";
/// A sandbox annotation for passing the default vcpus assigned for a VM by the hypervisor. /// A sandbox annotation for passing the default vCPUs assigned for a VM by the hypervisor.
pub const KATA_ANNO_CFG_HYPERVISOR_DEFAULT_VCPUS: &str = pub const KATA_ANNO_CFG_HYPERVISOR_DEFAULT_VCPUS: &str =
"io.katacontainers.config.hypervisor.default_vcpus"; "io.katacontainers.config.hypervisor.default_vcpus";
/// A sandbox annotation that specifies the maximum number of vCPUs allocated for the VM by the hypervisor. /// A sandbox annotation that specifies the maximum number of vCPUs allocated for the VM by the hypervisor.
@ -256,7 +256,7 @@ pub const KATA_ANNO_CFG_HYPERVISOR_ENABLE_ROOTLESS_HYPERVISOR: &str =
"io.katacontainers.config.hypervisor.rootless"; "io.katacontainers.config.hypervisor.rootless";
// Hypervisor Shared File System related annotations // Hypervisor Shared File System related annotations
/// A sandbox annotation to specify the shared file system type, either virtio-9p or virtio-fs. /// A sandbox annotation to specify the shared file system type, either inline-virtio-fs (default), virtio-9p, virtio-fs or virtio-fs-nydus.
pub const KATA_ANNO_CFG_HYPERVISOR_SHARED_FS: &str = pub const KATA_ANNO_CFG_HYPERVISOR_SHARED_FS: &str =
"io.katacontainers.config.hypervisor.shared_fs"; "io.katacontainers.config.hypervisor.shared_fs";
/// A sandbox annotations to specify virtio-fs vhost-user daemon path. /// A sandbox annotations to specify virtio-fs vhost-user daemon path.
@ -839,7 +839,7 @@ impl Annotation {
} }
} else { } else {
match key.as_str() { match key.as_str() {
//update agent config // update agent config
KATA_ANNO_CFG_KERNEL_MODULES => { KATA_ANNO_CFG_KERNEL_MODULES => {
let kernel_mod: Vec<String> = let kernel_mod: Vec<String> =
value.to_string().split(';').map(str::to_string).collect(); value.to_string().split(';').map(str::to_string).collect();
@ -863,7 +863,7 @@ impl Annotation {
return Err(u32_err); return Err(u32_err);
} }
}, },
//update runtime config // update runtime config
KATA_ANNO_CFG_RUNTIME_NAME => { KATA_ANNO_CFG_RUNTIME_NAME => {
let runtime = vec!["virt-container", "linux-container", "wasm-container"]; let runtime = vec!["virt-container", "linux-container", "wasm-container"];
if runtime.contains(&value.as_str()) { if runtime.contains(&value.as_str()) {