From: Andries Brouwer <aeb@veritas.com>
To: David Woodhouse <dwmw2@infradead.org>
Cc: linux-kernel@vger.rutgers.edu, mtd@infradead.org
Subject: Re: HDIO_GETGEO vs. BLKGETSIZE
Date: Mon, 22 May 2000 18:05:36 +0200 [thread overview]
Message-ID: <20000522180536.A23898@veritas.com> (raw)
In-Reply-To: <31364.959010436@devel2.axiom.internal>; from dwmw2@infradead.org on Mon, May 22, 2000 at 04:47:16PM +0100
On Mon, May 22, 2000 at 04:47:16PM +0100, David Woodhouse wrote:
> aeb@veritas.com said:
> > > What if BLKGETSIZE/(H*S) isn't an integer?
> > / is the C operator. It rounds down.
>
> Sorry, what I meant to say was:
>
> What if (BLKGETSIZE / (H*S)) * (H*S) != BLKGETSIZE?
>
> Is there anything that's likely to get confused by that?
No. It happens all the time:
# hdparm -g /dev/hda
geometry = 2100/255/63, sectors = 33750864, start = 0
and 2100*255*63 = 33736500 < 33750864.
It just means that if you use an fdisk that likes partitions
to start and end on cylinder boundaries, the last partial
cylinder is wasted. In this case that would be 7 MB.
Andries
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
next prev parent reply other threads:[~2000-05-22 16:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-22 12:06 HDIO_GETGEO vs. BLKGETSIZE David Woodhouse
2000-05-22 14:17 ` Andries Brouwer
2000-05-22 14:21 ` David Woodhouse
2000-05-22 14:30 ` Andries Brouwer
2000-05-22 15:47 ` David Woodhouse
2000-05-22 16:05 ` Andries Brouwer [this message]
2000-05-22 23:14 ` Andre Hedrick
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=20000522180536.A23898@veritas.com \
--to=aeb@veritas.com \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.rutgers.edu \
--cc=mtd@infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.