mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 12:14:48 +00:00
runtime-rs/virtio-fs: add support extra handler for cache mode.
Add support for virtiofsd when virtio_fs_extra_args with "-o cache auto, ..." users specified. Fixes: #6615 Signed-off-by: alex.lyn <alex.lyn@antgroup.com>
This commit is contained in:
parent
68cb5689f5
commit
dc6569dbbc
@ -188,6 +188,9 @@ impl DragonballInner {
|
||||
let args: Vec<&str> = opt_list.split(',').collect();
|
||||
for arg in args {
|
||||
match arg {
|
||||
"cache=none" => fs_cfg.cache_policy = String::from("none"),
|
||||
"cache=auto" => fs_cfg.cache_policy = String::from("auto"),
|
||||
"cache=always" => fs_cfg.cache_policy = String::from("always"),
|
||||
"no_open" => fs_cfg.no_open = true,
|
||||
"open" => fs_cfg.no_open = false,
|
||||
"writeback_cache" => fs_cfg.writeback_cache = true,
|
||||
|
Loading…
Reference in New Issue
Block a user