public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Phillip Susi <psusi@cfl.rr.com>
To: Molle Bestefich <molle.bestefich@gmail.com>
Cc: device-mapper development <dm-devel@redhat.com>,
	"Darrick J. Wong" <djwong@us.ibm.com>,
	Chris McDermott <lcm@us.ibm.com>,
	linux-kernel@vger.kernel.org
Subject: Re: Support HDIO_GETGEO on device-mapper volumes
Date: Fri, 10 Feb 2006 16:21:53 -0500	[thread overview]
Message-ID: <43ED03F1.4010308@cfl.rr.com> (raw)
In-Reply-To: <62b0912f0602101227q719e712bq40da5b2f0c5422c5@mail.gmail.com>

Molle Bestefich wrote:
> It would be better to make the decision once and for all, in one place.
>
> It would be even better for the HDIO_GETGEO call to return the same
> geometry that the BIOS uses, so that Grub is handed numbers that
> actually mean *something*.
>   

The problem is that the numbers don't actually mean anything, even to 
the bios.  They are only there for backward compatibility with real mode 
software that makes int 13 calls.  The bios just fakes the geometry 
anyway so it can emulate something, but there really is no meaning to 
the geometry; it's just smoke and mirrors. 

In the case of dm, which geometry should it report?  In some cases it 
might make sense to pass up the values from the bios, but in most, there 
is no sensible way to choose what to report, and any value you do report 
is meaningless gibberish anyhow, so why bother at all?  Just bring the 
apps still using it ( grub, lilo ) into the 21st century and have them 
stop using these meaningless values in the first place.  LBA has been 
around for a good 10 years now, so I think it is safe to no longer 
require these made up values to support CHS addressing. 
> When 'dmraid' has assembled an array, it should find the matching BIOS
> drive in /proc/bios/int13_dev* and then it should tell device-mapper
> to present that geometry to whomever asks via HDIO_GETGEO.
>   
dmraid is only one client of the kernel device mapper.  It has numerous 
uses that have nothing to do with hardware fakeraid, including LVM.  In 
the special case of dmraid there is a bios int13 dev for the raid that 
provides some geometry, but why hack dm for this special case when it is 
totally unnecessary in the first place?
> And while we're at it, <some component> should do the same for eg.
> /dev/hd?.  It's very annoying trying to fix up a harddrive's partition
> table when the numbers you see in Linux is different to the numbers
> you'll see when rebooting into DOS, or Windows XP, or whatever it is
> that's on the disk you're trying to fix.
> -
>   


  reply	other threads:[~2006-02-10 21:22 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-10  1:35 [PATCH] Support HDIO_GETGEO on device-mapper volumes Darrick J. Wong
2006-02-10  2:58 ` Andrew Morton
2006-02-10  5:15 ` Phillip Susi
2006-02-10  8:14   ` Darrick J. Wong
2006-02-10 15:14     ` Phillip Susi
2006-02-10 14:53 ` Alasdair G Kergon
2006-02-10 15:12   ` Phillip Susi
2006-02-10 20:27     ` Molle Bestefich
2006-02-10 21:21       ` Phillip Susi [this message]
2006-02-20 18:09         ` Molle Bestefich
2006-02-20 21:30           ` Phillip Susi
2006-02-21 13:30             ` Molle Bestefich
2006-02-21 16:02               ` Phillip Susi
2006-02-10 15:13   ` [PATCH] " Alasdair G Kergon
     [not found] <5Evqz-3kK-9@gated-at.bofh.it>
     [not found] ` <5EHUJ-4sa-1@gated-at.bofh.it>
     [not found]   ` <5EIeb-55n-33@gated-at.bofh.it>
     [not found]     ` <5EN4d-3ZP-21@gated-at.bofh.it>
2006-02-11  4:41       ` Robert Hancock

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=43ED03F1.4010308@cfl.rr.com \
    --to=psusi@cfl.rr.com \
    --cc=djwong@us.ibm.com \
    --cc=dm-devel@redhat.com \
    --cc=lcm@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=molle.bestefich@gmail.com \
    /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