From 62d213e6faac6399a5dc705595433d9bc1c19582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B3=B0=E5=8F=8B?= Date: Wed, 15 Mar 2023 09:46:44 +0800 Subject: [PATCH] rafs: fix amplify can not be skipped MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` json { "device":{ "backend":{ "type":"registry", "config":{ "readahead":false, "host":"dockerhub.kubekey.local", "repo":"dfns/alpine", "auth":"YWRtaw46SGFyYm9VMTIZNDU=", "scheme":"https", "skip_verify":true, "proxy":{ "fallback":false } } }, "cache":{ "type":"", "config":{ "work_dir":"/var/lib/containerd-nydus/cache", "disable_indexed_map":false } } }, "mode":"direct", "digest_validate":false, "jostats_files":true, "enable_xattr":true, "access_pattern":true, "latest_read_files":true, "batch_size":0, "amplify_io":0, "fs_prefetch":{ "enable":false, "prefetch_all":false, "threads_count":10, "merging_size":131072, "bandwidth_rate":1048576, "batch_size":0, "amplify_io":0 } } ``` `{.fs_prefetch.merging_size}` is used, instead of `{.amplify_io}` Signed-off-by: 泰友 --- rafs/src/fs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rafs/src/fs.rs b/rafs/src/fs.rs index 20fb2644689..247f1e0996a 100644 --- a/rafs/src/fs.rs +++ b/rafs/src/fs.rs @@ -102,7 +102,7 @@ impl Rafs { initialized: false, digest_validate: rafs_cfg.validate, fs_prefetch: rafs_cfg.prefetch.enable, - amplify_io: rafs_cfg.prefetch.batch_size as u32, + amplify_io: rafs_cfg.batch_size as u32, prefetch_all: rafs_cfg.prefetch.prefetch_all, xattr_enabled: rafs_cfg.enable_xattr,