Your message dated Thu, 21 Mar 2019 21:04:24 +0000
with message-id <[email protected]>
and subject line Bug#925207: fixed in libsys-statistics-linux-perl 0.66-3
has caused the Debian Bug report #925207,
regarding libsys-statistics-linux-perl: Sys::Statistics::Linux::DiskStats fails 
to parse /proc/diskstats for kernel >= v4.18
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
925207: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=925207
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libsys-statistics-linux-perl
Version: 0.66-2
Severity: normal
Tags: upstream patch

According to https://www.kernel.org/doc/Documentation/iostats.txt, 4 new fields
were added to /proc/diskstats for kernel version 4.18.  As a result, device
names and the "old" attribute fields are misparsed by the (very narrow) regexes
in Sys/Statistics/Linux/DiskStats.pm .  The attached patch appears to fix the
problem.

Already reported upstream as https://rt.cpan.org/Ticket/Display.html?id=128904



-- System Information:
Debian Release: 9.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libsys-statistics-linux-perl depends on:
ii  libuniversal-require-perl  0.17-1
ii  perl                       5.24.1-3+deb9u5

libsys-statistics-linux-perl recommends no packages.

libsys-statistics-linux-perl suggests no packages.
--- Sys-Statistics-Linux-0.66/lib/Sys/Statistics/Linux/DiskStats.pm     
2019-03-21 10:12:36.584677649 +0100
+++ Sys-Statistics-Linux-0.66_patched/lib/Sys/Statistics/Linux/DiskStats.pm     
2019-03-21 10:13:20.236575029 +0100
@@ -239,9 +239,9 @@
 
     if (open $fh, '<', $file_diskstats) {
         while (my $line = <$fh>) {
-            #                   --      --      --      F1     F2     F3     
F4     F5     F6     F7     F8    F9    F10   F11
-            #                   $1      $2      $3      $4     --     $5     
--     $6     --     $7     --    --    --    --
-            if ($line =~ 
/^\s+(\d+)\s+(\d+)\s+(.+?)\s+(\d+)\s+\d+\s+(\d+)\s+\d+\s+(\d+)\s+\d+\s+(\d+)\s+\d+\s+\d+\s+\d+\s+\d+$/)
 {
+           #                   --      --      --      F1     F2     F3     F4 
    F5     F6     F7     F8    F9    F10   F11  (F12..F15)?
+            #                   $1      $2      $3      $4     --     $5     
--     $6     --     $7     --    --    --    --   (-- .. --)?
+           if ($line =~ 
/^\s+(\d+)\s+(\d+)\s+(.+?)\s+(\d+)\s+\d+\s+(\d+)\s+\d+\s+(\d+)\s+\d+\s+(\d+)\s+\d+\s+\d+\s+\d+\s+\d+(?:(?:\s+\d+){4})?$/)
 {
                 for my $x ($stats{$3}) { # $3 -> the device name
                     $x->{major}   = $1;
                     $x->{minor}   = $2;

--- End Message ---
--- Begin Message ---
Source: libsys-statistics-linux-perl
Source-Version: 0.66-3

We believe that the bug you reported is fixed in the latest version of
libsys-statistics-linux-perl, which is due to be installed in the Debian FTP 
archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Florian Schlichting <[email protected]> (supplier of updated 
libsys-statistics-linux-perl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 21 Mar 2019 21:35:03 +0100
Source: libsys-statistics-linux-perl
Architecture: source
Version: 0.66-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Perl Group <[email protected]>
Changed-By: Florian Schlichting <[email protected]>
Closes: 925207
Changes:
 libsys-statistics-linux-perl (0.66-3) unstable; urgency=medium
 .
   * Fix parsing linux 4.18+ diskstats (closes: #925207)
Checksums-Sha1:
 bcb5ff8a482a5b704ad325dca9a46687ef3320e3 2461 
libsys-statistics-linux-perl_0.66-3.dsc
 5b95e992867e5ffa14943f43ae4e54f561c862bc 4128 
libsys-statistics-linux-perl_0.66-3.debian.tar.xz
 4dc75ee943694252a76dcf7c75eab83a9908053f 5818 
libsys-statistics-linux-perl_0.66-3_amd64.buildinfo
Checksums-Sha256:
 854844faa8b1bfc7bba667855b9d3a49ca59607ef297653f4dcf4a5c22c38d1a 2461 
libsys-statistics-linux-perl_0.66-3.dsc
 c5ae45b0f36f9bafd19a94c2211dcca0469b0fafa771c139cd84606209d408f0 4128 
libsys-statistics-linux-perl_0.66-3.debian.tar.xz
 408da3a26956d40fb7175a4cc644f2ceabe2521846e7ad1a34d2bde58ec312b5 5818 
libsys-statistics-linux-perl_0.66-3_amd64.buildinfo
Files:
 e525e95c96c95097f4af449008ae59e4 2461 perl optional 
libsys-statistics-linux-perl_0.66-3.dsc
 0ed44980b58731c45c5d437d0a1630af 4128 perl optional 
libsys-statistics-linux-perl_0.66-3.debian.tar.xz
 ebef3e1905bf8ee3bcca593eb8348f3b 5818 perl optional 
libsys-statistics-linux-perl_0.66-3_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEMLI8i05qOwnqprZSEpc7bnLcB7UFAlyT9yMACgkQEpc7bnLc
B7WYlg//clCI0S278N7lmflJvBSYvigAkQf6sgjNhfTCuSN9emXgEalmFiR3ViWk
RFlYTPBV9Gzp6zrFTNNLm1lfZF9fAV72Q97SR7Co1kdIiUFrxx1wqPJjY5jo/P8U
idwvxer0lzKLhVBtb8/azPCh4ZoPSsCRqCaYZNmih6eTmb+SwNfiQdUnzj6YS1cK
MmyRsx845Tj4/79Kq5coRitEBv/QNKjgz2BY1CSR8Nvvvyj0jMhwHGSrUsv8Hi5w
tH8aoy26DbXwveoBGRd7Ax1n6CtmD4rJvtRRsduhDw+4KiZE1i8eAsKJeZCrrIHO
l4T2UIVEat75xUvOWe/yvFOEsw9bTN0R7jS++BybvAmtsm6K+FryoA3ySMSlLZcc
0tVXEJVPF3orZpINOILUi/BXiFpTBXYP+L/HgJnvclegDMSk+b5zzKt6ZObix7Wr
3LqIxOX7b8nMeNq0y3ybZgbyzLiwgfs8qYhh2SZeA2E4+qNV3T36ZO8mH+H5rsMc
uySLmInoHwRvAEan3gJnNGSGX8UotP8o9VpTSRFPGqFtUwbUHX2iL6l9xYGMA79T
cRbsrYl2D2blEfNS7yGbOsPXVZ+yrNncB8iqEf0LMYF6N+rfBcwB8BfMcdWbX6Vs
RcufkZWUMxqwVmSBl5doY+ak2iouhcypovnEBBhdo/ON4nqflFA=
=TSag
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to