lkml.org 
[lkml]   [2002]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] /proc/partitions fix for 2.5.30
    Date
    Hi,

    I found the problem with /proc/partitions showing wrong number of
    blocks in 2.5.30.

    Here is the patch. Please apply.

    Thanks,
    Badari

    --- linux/drivers/block/genhd.c Mon Aug 5 17:30:36 2002
    +++ linux.new/drivers/block/genhd.c Mon Aug 5 17:23:29 2002
    @@ -166,7 +166,7 @@
    continue;
    seq_printf(part, "%4d %4d %10ld %s\n",
    sgp->major, n + sgp->first_minor,
    - sgp->part[n].nr_sects << 1,
    + sgp->part[n].nr_sects >> 1,
    disk_name(sgp, n + sgp->first_minor, buf));
    }

    -
    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:27    [W:0.035 / U:29.588 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site