From 959a34bc6f75d88c8227a4b91243fe425148ace0 Mon Sep 17 00:00:00 2001 From: xujing <17826839720@163.com> Date: Sat, 15 May 2021 18:24:31 +0800 Subject: [PATCH] rasdaemon: fix disk error log storm --- bugfix-fix-disk-error-log-storm.patch | 26 ++++++++++++++++++++++++++ rasdaemon.spec | 9 ++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 bugfix-fix-disk-error-log-storm.patch diff --git a/bugfix-fix-disk-error-log-storm.patch b/bugfix-fix-disk-error-log-storm.patch new file mode 100644 index 0000000..8241cfc --- /dev/null +++ b/bugfix-fix-disk-error-log-storm.patch @@ -0,0 +1,26 @@ +From 38b9c016f7c301435f9e7ba22678a664cca394a7 Mon Sep 17 00:00:00 2001 +From: xujing +Date: Fri, 19 Mar 2021 18:32:08 +0800 +Subject: [PATCH] rasdaemon: fix disk error log storm + +reason: fix disk error log storm +--- + misc/rasdaemon.service.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/misc/rasdaemon.service.in b/misc/rasdaemon.service.in +index e73a08a..04a0489 100644 +--- a/misc/rasdaemon.service.in ++++ b/misc/rasdaemon.service.in +@@ -4,7 +4,7 @@ After=syslog.target + + [Service] + EnvironmentFile=/etc/sysconfig/rasdaemon +-ExecStart=@sbindir@/rasdaemon -f -r ++ExecStart=@sbindir@/rasdaemon -f + ExecStartPost=@sbindir@/rasdaemon --enable + ExecStop=@sbindir@/rasdaemon --disable + Restart=on-abort +-- +2.23.0 + diff --git a/rasdaemon.spec b/rasdaemon.spec index 0c948b3..a299297 100644 --- a/rasdaemon.spec +++ b/rasdaemon.spec @@ -1,6 +1,6 @@ Name: rasdaemon Version: 0.6.6 -Release: 4 +Release: 5 License: GPLv2 Summary: Utility to get Platform Reliability, Availability and Serviceability (RAS) reports via the Kernel tracing events URL: https://github.com/mchehab/rasdaemon.git @@ -25,6 +25,7 @@ Patch3: bugfix-fix-fd-check.patch Patch4: backport-0001-ras-page-isolation-do_page_offline-always-considers-.patch Patch5: backport-0002-ras-page-isolation-page-which-is-PAGE_OFFLINE_FAILED.patch Patch6: backport-rasdaemon-Fix-error-print.patch +Patch7: bugfix-fix-disk-error-log-storm.patch %description The rasdaemon program is a daemon which monitors the platform @@ -71,6 +72,12 @@ rm INSTALL %{buildroot}/usr/include/*.h /usr/bin/systemctl enable rasdaemon.service >/dev/null 2>&1 || : %changelog +* Sat May 15 2021 xujing<17826839720@163.com> - 0.6.6-5 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix disk error log storm + * Wed Apr 28 2021 Lv Ying - 0.6.6-4 - backport bugfix patches from community: 1. Fix error print handle_ras_events. -- Gitee