lkml.org 
[lkml]   [2002]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[2.4 patch] remove obsolete disk statistics header from /proc/partitions

    ChangeSet 1.579 removes the disk statistics in /proc/partitions.

    But the header line is still present:

    <-- snip -->

    # cat /proc/partitions
    major minor #blocks name rio rmerge rsect ruse wio wmerge wsect wuse
    running use aveq

    22 64 20039544 hdd
    22 65 20039512 hdd1
    3 0 20010312 hda
    3 1 1028128 hda1
    3 2 1020127 hda2
    3 3 1 hda3
    3 5 3076416 hda5
    3 6 2867571 hda6
    3 7 1959898 hda7
    3 8 10056658 hda8
    #

    <-- snip -->


    I suggest the following patch to remove it:


    --- drivers/block/genhd.c.old Thu Jul 4 20:32:35 2002
    +++ drivers/block/genhd.c Thu Jul 4 20:33:26 2002
    @@ -163,9 +163,7 @@
    char buf[64];
    int len, n;

    - len = sprintf(page, "major minor #blocks name "
    - "rio rmerge rsect ruse wio wmerge "
    - "wsect wuse running use aveq\n\n");
    + len = sprintf(page, "major minor #blocks name\n\n");


    read_lock(&gendisk_lock);

    cu
    Adrian

    --

    You only think this is a free country. Like the US the UK spends a lot of
    time explaining its a free country because its a police state.
    Alan Cox


    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:22    [W:0.027 / U:59.668 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site