fix pending count output breaking json format (RHEL-148723)
Resolves: RHEL-148723
This commit is contained in:
parent
457386b234
commit
6e397d404d
12
smartmontools-7.2-json-pending-count.patch
Normal file
12
smartmontools-7.2-json-pending-count.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -up smartmontools-7.1/scsiprint.cpp.json-pending-count smartmontools-7.1/scsiprint.cpp
|
||||
--- smartmontools-7.1/scsiprint.cpp.json-pending-count 2026-08-10 11:23:11.474375067 +0200
|
||||
+++ smartmontools-7.1/scsiprint.cpp 2026-08-10 11:25:21.811866906 +0200
|
||||
@@ -524,7 +524,7 @@ scsiPrintPendingDefectsLPage(scsi_device
|
||||
pl = bp[3] + 4;
|
||||
switch (pc) {
|
||||
case 0x0:
|
||||
- printf(" Pending defect count:");
|
||||
+ jout(" Pending defect count:");
|
||||
if ((pl < 8) || (num < 8)) {
|
||||
print_on();
|
||||
pout("%s truncated descriptor\n", pDefStr);
|
||||
@ -1,7 +1,7 @@
|
||||
Summary: Tools for monitoring SMART capable hard disks
|
||||
Name: smartmontools
|
||||
Version: 7.1
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Epoch: 1
|
||||
Group: System Environment/Base
|
||||
License: GPLv2+
|
||||
@ -25,6 +25,10 @@ Patch6: smartmontools-7.4-r5121.patch
|
||||
Patch7: smartmontools-7.4-r5471.patch
|
||||
Patch8: smartmontools-7.4-r5472.patch
|
||||
|
||||
# from upstream, for <= 7.3, RHEL-148723
|
||||
# https://github.com/smartmontools/smartmontools/commit/5689dea0d77713c984188db9cf6b8377081b880f
|
||||
Patch9: smartmontools-7.2-json-pending-count.patch
|
||||
|
||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||
#new rpm does not handle this (yet?)
|
||||
#Requires(triggerun): systemd-units
|
||||
@ -53,7 +57,7 @@ failure.
|
||||
%patch -P 6 -p1 -b .r5121
|
||||
%patch -P 7 -p1 -b .r5471
|
||||
%patch -P 8 -p1 -b .r5472
|
||||
|
||||
%patch -P 9 -p1 -b .json-pending-count
|
||||
# update SOURCE5 on maintainer's machine prior commiting, there's no internet connection on builders
|
||||
curl %{UrlSource5} -o %{SOURCE5} ||:
|
||||
cp %{SOURCE5} .
|
||||
@ -124,6 +128,9 @@ fi
|
||||
%{_sharedstatedir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Mon Aug 10 2026 Michal Hlavinka <mhlavink@redhat.com> - 1:7.1-4
|
||||
- fix pending count output breaking json format (RHEL-148723)
|
||||
|
||||
* Wed Nov 22 2023 Michal Hlavinka <mhlavink@redhat.com> - 1:7.1-3
|
||||
- don't report new non-device related errors as critical (#RHEL-6982)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user