mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Martin Schwidefsky" <schwidefsky@de.ibm.com>
To: Andries Brouwer <aebr@win.tue.nl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: hd_geometry question.
Date: Tue, 2 Jul 2002 11:16:06 +0200	[thread overview]
Message-ID: <OF25B15FAC.FE67359D-ONC1256BEA.0032B6AA@de.ibm.com> (raw)


>About a partition one wants to know start and length.
>About a full disk one wants to know size, and perhaps a (fake) geometry.
>
>The vital partition data cannot depend on obscure hardware info.
>So, the units used must be well-known. Earlier, everything was in
>512-byte sectors, but there are a few places where that is inconvenient
>or unnatural, and now that one has more than 2^32 sectors and 64 bits
>are needed anyway, things are measured in bytes.
>
>That the start field comes with the HDIO_GETGEO ioctl and the size with
>the BLKGETSIZE ioctl is due to history. Both are given in 512-byte sectors.
>BLKGETSIZE64 gives bytes.

Just to make sure I got that right, HDIO_GETGEO delivers a FAKE geometry
based on the assumption that the sector size is 512 bytes ?

blue skies,
   Martin



             reply	other threads:[~2002-07-02  9:17 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-02  9:16 Martin Schwidefsky [this message]
2002-07-02 10:50 ` jw schultz
2002-07-03  0:20 ` Andries Brouwer
2002-07-03 23:48   ` Roman Zippel
2002-07-04  9:09     ` Andries Brouwer
2002-07-04 22:15       ` Andre Hedrick
2002-07-08 18:55     ` Alan Cox
  -- strict thread matches above, loose matches on Subject: below --
2002-07-03  8:13 Martin Schwidefsky
2002-07-03  9:37 ` Andries Brouwer
2002-07-01 16:02 Martin Schwidefsky
2002-07-01 19:19 ` Andre Hedrick
2002-07-01 19:58 ` Andries Brouwer

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=OF25B15FAC.FE67359D-ONC1256BEA.0032B6AA@de.ibm.com \
    --to=schwidefsky@de.ibm.com \
    --cc=aebr@win.tue.nl \
    --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®