From a375d1e1be998731fd87ec5695b8e65f0fc57805 Mon Sep 17 00:00:00 2001 From: Yan Song Date: Fri, 24 Jun 2022 10:12:08 +0000 Subject: [PATCH] fscache: remove warning when handle fscache read request Nydusd will read with amplification data when handling fscache read request, so we don't need to give a warning if the requested data size does not match with the read size by actually. Signed-off-by: Yan Song --- src/bin/nydusd/fs_cache.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/bin/nydusd/fs_cache.rs b/src/bin/nydusd/fs_cache.rs index 18bde582fb7..af32e097cef 100644 --- a/src/bin/nydusd/fs_cache.rs +++ b/src/bin/nydusd/fs_cache.rs @@ -583,13 +583,7 @@ impl FsCacheHandler { warn!("fscache: internal error: cached object is not BlobCache objects"); } Some(obj) => match obj.fetch_range_uncompressed(msg.off, msg.len) { - Ok(v) if v == msg.len as usize => {} - Ok(v) => { - warn!( - "fscache: read data from blob object not matched: {} != {}", - v, msg.len - ); - } + Ok(_) => {} Err(e) => error!( "{}", format!("fscache: failed to read data from blob object: {}", e,)