mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-13 04:49:36 +00:00
Merge pull request #6618 from Apokleos/virtiofs_extra_cache_mode
runtime-rs/virtio-fs: add support extra handler for cache mode.
This commit is contained in:
@@ -188,6 +188,9 @@ impl DragonballInner {
|
|||||||
let args: Vec<&str> = opt_list.split(',').collect();
|
let args: Vec<&str> = opt_list.split(',').collect();
|
||||||
for arg in args {
|
for arg in args {
|
||||||
match arg {
|
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,
|
"no_open" => fs_cfg.no_open = true,
|
||||||
"open" => fs_cfg.no_open = false,
|
"open" => fs_cfg.no_open = false,
|
||||||
"writeback_cache" => fs_cfg.writeback_cache = true,
|
"writeback_cache" => fs_cfg.writeback_cache = true,
|
||||||
|
Reference in New Issue
Block a user