From: Badari Pulavarty <pbadari@us.ibm.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] /proc/partitions fix for 2.5.30
Date: Mon, 5 Aug 2002 17:45:39 -0700 (PDT) [thread overview]
Message-ID: <200208060045.g760jdr15064@eng2.beaverton.ibm.com> (raw)
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));
}
reply other threads:[~2002-08-06 0:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200208060045.g760jdr15064@eng2.beaverton.ibm.com \
--to=pbadari@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®