Bug 82423 - Disk stats not shown with Linux kernel 2.6.x (/proc/stats info has moved to /proc/diskstats)
Summary: Disk stats not shown with Linux kernel 2.6.x (/proc/stats info has moved to /...
Status: RESOLVED FIXED
Alias: None
Product: ksysguard
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-29 03:44 UTC by Holger Janssen
Modified: 2018-12-24 09:36 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Diff to stat.c module which implements disk stats for 2.6 kernels (based on /proc/diskstats) (6.85 KB, patch)
2004-05-29 03:51 UTC, Holger Janssen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Janssen 2004-05-29 03:44:29 UTC
Version:           1.2.0 (using KDE KDE 3.2.2)
Installed from:    SuSE RPMs
Compiler:          gcc 3.3.3 
OS:                Linux

After upgrading to Liunx 2.6 kernel (SuSE 9.1) the disk stats sensors of ksysguard were no longer available. An exiting ksysguard configuration shows the disk I/O panels as inactive, configured sensors state 'error'.
Comment 1 Holger Janssen 2004-05-29 03:51:44 UTC
Created attachment 6170 [details]
Diff to stat.c module which implements disk stats for 2.6 kernels (based on /proc/diskstats)

Attached path solved the problem for me. It processes the new /proc/diskstats
entries, and takes care of the 'disk' and 'partition' entries. The result is
that a monitor in created for each disk, as well as all mounted partitions, so
partitions could be monitored separately.
Comment 2 Tobias Koenig 2004-08-09 20:49:51 UTC
CVS commit by tokoe: 

Commit the patch written by Holger Janssen <holger.janssen@te4l.com> which
fixes the stat sensor for 2.6 kernel.

CCMAIL:82423-done@bugs.kde.org


  M +166 -2    stat.c   1.33 [POSSIBLY UNSAFE: scanf,printf]