From: David Woodhouse <dwmw2@infradead.org>
To: Andries Brouwer <aeb@veritas.com>
Cc: linux-kernel@vger.rutgers.edu, mtd@infradead.org
Subject: Re: HDIO_GETGEO vs. BLKGETSIZE
Date: Mon, 22 May 2000 15:21:53 +0100 [thread overview]
Message-ID: <30907.959005313@devel2.axiom.internal> (raw)
In-Reply-To: <20000522161756.A23047@veritas.com>
aeb@veritas.com said:
> A modern fdisk will use the values for heads and sectors/track given
> by HDIO_GETGEO, but ignore the value for cylinders.
> Indeed, since cylinders is a 16-bit field and the number of cylinders
> can be larger than 65535, the value may be truncated, and is to be
> considered worthless.
> Instead, the number of cylinders is computed as BLKGETSIZE/(H*S).
What if BLKGETSIZE/(H*S) isn't an integer?
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
next prev parent reply other threads:[~2000-05-22 14:21 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 [this message]
2000-05-22 14:30 ` Andries Brouwer
2000-05-22 15:47 ` David Woodhouse
2000-05-22 16:05 ` Andries Brouwer
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=30907.959005313@devel2.axiom.internal \
--to=dwmw2@infradead.org \
--cc=aeb@veritas.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox