public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Phillip Susi <psusi@cfl.rr.com>
To: "Darrick J. Wong" <djwong@us.ibm.com>
Cc: dm-devel@redhat.com, Chris McDermott <lcm@us.ibm.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Support HDIO_GETGEO on device-mapper volumes
Date: Fri, 10 Feb 2006 00:15:54 -0500	[thread overview]
Message-ID: <43EC218A.9000402@cfl.rr.com> (raw)
In-Reply-To: <43EBEDD0.60608@us.ibm.com>

Hrm... when I setup my system on a dmraid controlled hardware fakeraid 
raid-0, I just gave grub a suitable geometry command since it couldn't 
auto detect it.  I suppose this would make that unnecessary.

I think that ultimately, grub shouldn't care about the geometry since 
that information has been obsolete for years.  If it can't detect the 
geometry, then it should just assume the system supports LBA and to hell 
with using made up geometry numbers.


Darrick J. Wong wrote:
> Hi again,
> 
> I'm trying to install grub on a device-mapper RAID1 array that I set up 
> via dmraid (in other words, a bootable software fakeraid).  Since dm 
> doesn't implement the HDIO_GETGEO ioctl, grub assumes that the CHS 
> geometry is 620/128/63, which makes it impossible to configure it to 
> boot a filesystem that lives beyond the 2GB mark, even if the system 
> BIOS supports that.
> 
> The attached patch implements a simple ioctl handler that supplies a 
> compatible geometry when HDIO_GETGEO is called against a device-mapper 
> device.  Its behavior is somewhat similar to what sd_mod does if the 
> scsi controller doesn't provide its own geometry.  Granted, the notion 
> of cylinders, heads and sectors is silly on a RAID array, but with this 
> patch, interested programs can obtain CHS data that's somewhat close to 
> correct; this seems to be a better option than having each program make 
> up its own potentially different geometry, or making an arbitrary guess. 
>  Assuming that all of the programs that need to know CHS geometry will 
> query the kernel via HDIO_GETGEO, this patch makes it so that all of 
> those programs end up using the same geometry.
> 
> The patch applies cleanly against 2.6.15.3; if there aren't any 
> objections then I'm submitting this for upstream.  However, I'm all ears 
> for suggestions.
> 
> Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
> 
> --Darrick
> 


  parent reply	other threads:[~2006-02-10  5:16 UTC|newest]

Thread overview: 14+ 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 [this message]
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
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

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=43EC218A.9000402@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 \
    /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