!18 rasdaemon: fix disk error log storm

From: @xujing99
Reviewed-by: @openeuler-basic
Signed-off-by: @openeuler-basic
This commit is contained in:
openeuler-ci-bot 2021-05-15 18:51:41 +08:00 committed by Gitee
commit 512cc7e4fe
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From 38b9c016f7c301435f9e7ba22678a664cca394a7 Mon Sep 17 00:00:00 2001
From: xujing <xujing99@huawei.com>
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

View File

@ -1,6 +1,6 @@
Name: rasdaemon
Version: 0.6.6
Release: 1
Release: 2
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
@ -22,6 +22,7 @@ Requires(postun): systemd
Patch1: bugfix-ras-events-memory-leak.patch
Patch2: bugfix-rasdaemon-wait-for-file-access.patch
Patch3: bugfix-fix-fd-check.patch
Patch4: bugfix-fix-disk-error-log-storm.patch
%description
The rasdaemon program is a daemon which monitors the platform
@ -68,6 +69,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-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix disk error log storm
* Fri Jul 24 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.6.6-1
- Update software to v0.6.6