mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-10-31 17:37:20 +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:
		| @@ -266,7 +266,7 @@ pub const KATA_ANNO_CFG_HYPERVISOR_SHARED_FS: &str = | ||||
| /// A sandbox annotations to specify virtio-fs vhost-user daemon path. | ||||
| pub const KATA_ANNO_CFG_HYPERVISOR_VIRTIO_FS_DAEMON: &str = | ||||
|     "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 = | ||||
|     "io.katacontainers.config.hypervisor.virtio_fs_cache"; | ||||
| /// 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>, | ||||
|  | ||||
|     /// 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. | ||||
|     /// - 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). | ||||
|   | ||||
		Reference in New Issue
	
	Block a user