diff --git a/kuasar.spec b/kuasar.spec index 75fabd584c1897cd79b40249231b9bc07fe93d33..f9a40add1a6d707623d2ac27d4c2910fa33ab34b 100644 --- a/kuasar.spec +++ b/kuasar.spec @@ -2,7 +2,7 @@ Name: kuasar Version: 1.0.0 -Release: 4 +Release: 5 Summary: Kuasar is an efficient container runtime that supports multiple sandbox techniques. License: Apache License 2.0 URL: https://github.com/kuasar-io/kuasar @@ -85,6 +85,9 @@ rm -rf %{buildroot} %config(noreplace) %{kuasarconfdir}/config.toml %changelog +* Mon Jan 6 liuxu -1.0.0-5 +- logfix:print warn instead of error when dir not found. + * Fri Nov 29 liuxu -1.0.0-4 - fix:use ttrpc-rust in vendor diff --git a/patch/0008-logfix-print-warn-instead-of-error-when-dir-not-foun.patch b/patch/0008-logfix-print-warn-instead-of-error-when-dir-not-foun.patch new file mode 100644 index 0000000000000000000000000000000000000000..d3c815de19aedf5e263d72c63b48ca69592ceeb9 --- /dev/null +++ b/patch/0008-logfix-print-warn-instead-of-error-when-dir-not-foun.patch @@ -0,0 +1,33 @@ +From 70b4d5f2fae117b3ced3ce76d25ef61bb453be1d Mon Sep 17 00:00:00 2001 +From: liuxu +Date: Tue, 17 Dec 2024 11:11:12 +0800 +Subject: [PATCH] logfix:print warn instead of error when dir not found. + +Signed-off-by: liuxu +--- + vmm/sandbox/src/sandbox.rs | 9 +++++++-- + 1 file changed, 7 insertions(+), 2 deletions(-) + +diff --git a/vmm/sandbox/src/sandbox.rs b/vmm/sandbox/src/sandbox.rs +index 42875a8..dd724c9 100644 +--- a/vmm/sandbox/src/sandbox.rs ++++ b/vmm/sandbox/src/sandbox.rs +@@ -90,8 +90,13 @@ where + let mut subs = match tokio::fs::read_dir(dir).await { + Ok(subs) => subs, + Err(e) => { +- error!("FATAL! read working dir {} for recovery: {}", dir, e); +- return; ++ if e.kind() == ErrorKind::NotFound { ++ warn!("WARN! read working dir {} for recovery: {}", dir, e); ++ return; ++ } else { ++ error!("FATAL! read working dir {} for recovery: {}", dir, e); ++ return; ++ } + } + }; + while let Some(entry) = subs.next_entry().await.unwrap() { +-- +2.34.1 + diff --git a/series.conf b/series.conf index b74bf6167a13a2a422fd2a98b1b5447063750382..d89e146bde3a11fa85a28ca986d940da1fe4cae6 100644 --- a/series.conf +++ b/series.conf @@ -5,3 +5,4 @@ 0005-vmm-qemu-support-config_qemu.toml.patch 0006-add-ttrpc-rust-to-use-vendor.patch 0007-fix-use-ttrpc-rust-in-vendor.patch +0008-logfix-print-warn-instead-of-error-when-dir-not-foun.patch