Commit 5c2f6403 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] fix /proc/partitions braino

fix for embarrassing braino in /proc/partitions - size in kilobytes
is _half_ the size in secotrs, not twice that size...
parent 4f4b6a13
...@@ -166,7 +166,7 @@ static int show_partition(struct seq_file *part, void *v) ...@@ -166,7 +166,7 @@ static int show_partition(struct seq_file *part, void *v)
continue; continue;
seq_printf(part, "%4d %4d %10ld %s\n", seq_printf(part, "%4d %4d %10ld %s\n",
sgp->major, n + sgp->first_minor, 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)); disk_name(sgp, n + sgp->first_minor, buf));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment