-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a reported problem: #170 This patch fixes the case when there is no error reported via BERT data and yet the probe fails with error such as: "Failed to read payload from: /sys/firmware/acpi/tables/data/BERT" Which then results in journalprobe reporting: "bert-probe.service: Main process exited, code=exited, status=1/FAILURE" The file BERT data file now has root only read permissions: $ ls -al /sys/firmware/acpi/tables/data/BERT -r-------- 1 root root 32768 Nov 25 07:37 /sys/firmware/acpi/tables/data/BERT Hence the user "telemetry" cannot read it anymore. In addition, the file size can be more than max payload size (4k). However, the file can be completely blank. The probe inspects the block_status for any present errors. If there aren't any, probe does not report anything. While in there, for consistency reasons, modified "printf" statements with error messages to telem_log(LOG_ERR, msg) Signed-off-by: Juro Bystricky <[email protected]>
- Loading branch information
1 parent
49823ea
commit 72ea0d9
Showing
2 changed files
with
84 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters