* [PATCH] /proc/partitions fix for 2.5.30
@ 2002-08-06 0:45 Badari Pulavarty
0 siblings, 0 replies; only message in thread
From: Badari Pulavarty @ 2002-08-06 0:45 UTC (permalink / raw)
To: linux-kernel
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));
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-08-06 0:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-06 0:45 [PATCH] /proc/partitions fix for 2.5.30 Badari Pulavarty
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®