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/
This archive was generated by hypermail 2b29 : Wed Aug 07 2002 - 22:00:29 EST