mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 12:14:48 +00:00
kata-types: change cache mode from none to never
New Rust virtiofsd's `cache` mode doesn't support `none` mode, we should use `never` to replace it. Fixes: #6018 Signed-off-by: Bin Liu <bin@hyper.sh>
This commit is contained in:
parent
fee4e7c7c4
commit
7b309b578d
@ -266,7 +266,7 @@ pub const KATA_ANNO_CFG_HYPERVISOR_SHARED_FS: &str =
|
|||||||
/// A sandbox annotations to specify virtio-fs vhost-user daemon path.
|
/// A sandbox annotations to specify virtio-fs vhost-user daemon path.
|
||||||
pub const KATA_ANNO_CFG_HYPERVISOR_VIRTIO_FS_DAEMON: &str =
|
pub const KATA_ANNO_CFG_HYPERVISOR_VIRTIO_FS_DAEMON: &str =
|
||||||
"io.katacontainers.config.hypervisor.virtio_fs_daemon";
|
"io.katacontainers.config.hypervisor.virtio_fs_daemon";
|
||||||
/// A sandbox annotation to specify the cache mode for fs version cache or "none".
|
/// A sandbox annotation to specify the cache mode for fs version cache.
|
||||||
pub const KATA_ANNO_CFG_HYPERVISOR_VIRTIO_FS_CACHE: &str =
|
pub const KATA_ANNO_CFG_HYPERVISOR_VIRTIO_FS_CACHE: &str =
|
||||||
"io.katacontainers.config.hypervisor.virtio_fs_cache";
|
"io.katacontainers.config.hypervisor.virtio_fs_cache";
|
||||||
/// A sandbox annotation to specify the DAX cache size in MiB.
|
/// A sandbox annotation to specify the DAX cache size in MiB.
|
||||||
|
@ -767,7 +767,7 @@ pub struct SharedFsInfo {
|
|||||||
pub virtio_fs_extra_args: Vec<String>,
|
pub virtio_fs_extra_args: Vec<String>,
|
||||||
|
|
||||||
/// Cache mode:
|
/// Cache mode:
|
||||||
/// - none: Metadata, data, and pathname lookup are not cached in guest. They are always
|
/// - never: Metadata, data, and pathname lookup are not cached in guest. They are always
|
||||||
/// fetched from host and any changes are immediately pushed to host.
|
/// fetched from host and any changes are immediately pushed to host.
|
||||||
/// - auto: Metadata and pathname lookup cache expires after a configured amount of time
|
/// - auto: Metadata and pathname lookup cache expires after a configured amount of time
|
||||||
/// (default is 1 second). Data is cached while the file is open (close to open consistency).
|
/// (default is 1 second). Data is cached while the file is open (close to open consistency).
|
||||||
|
Loading…
Reference in New Issue
Block a user