Bug 82423

Summary: Disk stats not shown with Linux kernel 2.6.x (/proc/stats info has moved to /proc/diskstats)
Product: [Applications] ksysguard Reporter: Holger Janssen <holger.janssen>
Component: generalAssignee: KSysGuard Developers <ksysguard-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Diff to stat.c module which implements disk stats for 2.6 kernels (based on /proc/diskstats)

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]