After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 539360 - /sys vfs block device stat fields have changed
/sys vfs block device stat fields have changed
Status: RESOLVED FIXED
Product: libgtop
Classification: Core
Component: linux
2.23.x
Other All
: Normal normal
: ---
Assigned To: libgtop maintainers
libgtop maintainers
Depends on:
Blocks:
 
 
Reported: 2008-06-20 20:20 UTC by Michael Schwendt
Modified: 2008-06-22 09:32 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Schwendt 2008-06-20 20:20:18 UTC
Please describe the problem:
With recent Linux kernel updates, /sys/block/sd*/sd??/stat returns more fields with changed meaning. Due to this, the *_get_fsusage_read_write function returns bad values. One program that suffers from this is the GNOME system monitor applet.

More details in Fedora bugzilla:
https://bugzilla.redhat.com/452273


Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Benoît Dejean 2008-06-20 21:51:18 UTC
I can't even remember where i found the format of these sysfs entries (maybe in rlove's book). What a nice breakage. I assume it then has the same format than /sys/block/X/stat as described in block/stat.txt
Comment 2 Benoît Dejean 2008-06-20 22:11:55 UTC
I'll commit the easy fix to stable and head as soon as i find the associated kernel commitid
Comment 3 Benoît Dejean 2008-06-21 10:28:53 UTC
Sweet irony :)


commit 34e8beac92c27d292938065f8375842d2840767c
Author: Jerome Marchand <jmarchan@redhat.com>
Date:   Fri Feb 8 11:04:55 2008 +0100

    Enhanced partition statistics: sysfs
    
    Reports enhanced partition statistics in sysfs.
    
    Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Comment 4 Benoît Dejean 2008-06-22 09:32:22 UTC
http://svn.gnome.org/viewvc/libgtop?view=revision&revision=2754
http://svn.gnome.org/viewvc/libgtop?view=revision&revision=2755

This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.