util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Davidlohr Bueso <dave@gnu.org>
To: Karel Zak <kzak@redhat.com>
Cc: John Lane <util-linux@jelmail.com>, util-linux@vger.kernel.org
Subject: Re: fdisk geometry
Date: Thu, 26 Jul 2012 12:29:41 +0200	[thread overview]
Message-ID: <1343298581.2609.8.camel@offbook> (raw)
In-Reply-To: <20120726095752.GD17589@x2.net.home>

On Thu, 2012-07-26 at 11:57 +0200, Karel Zak wrote:
> On Thu, Jul 26, 2012 at 11:29:40AM +0200, Davidlohr Bueso wrote:
> > > (a) where fdisk gets the information about the geometry from in  this 
> > > specific case?
> > 
> > fdisk gets the information from (i) user input, (ii) what the
> > kernel/bios thinks the geometry is, with the HDIO_GETGEO ioctl and (iii)
> > by inferring it from the partition table geometry.
> 
>  BTW, does it make any sense to read the geometry from partition table
>  if the partition table has been aligned according to the device topology
>  (for example 1MiB offset and grain)?

Hmm not really, no. In any case we got rid of the pt geometry,
__discover_system_geometry() only gets the info from the kernel.

> > > fdisk even bother displaying a geometry any more ? Doesn't it just serve 
> > > to confuse?
> 
>  IMHO for non-DOS compatible mode it would be better to ignore PT
>  geometry (read only info from kernel to have "some" values) and
>  don't display geometry in the default output, because it's completely
>  irrelevant.
> 
>  The same we can do with -S -C -H options -- it would be better to
>  print a warning if the options are specified for non-DOS mode.
> 

I agree.

>  I still see on many places suggestions like "use -S -H to align your
>  flash disk" or so... all this is legacy.
> 
>     Karel
> 



  reply	other threads:[~2012-07-26 10:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-26  1:34 fdisk geometry John Lane
2012-07-26  9:29 ` Davidlohr Bueso
2012-07-26  9:57   ` Karel Zak
2012-07-26 10:29     ` Davidlohr Bueso [this message]
2012-07-26 10:38       ` Karel Zak
2012-07-28  0:20   ` John Lane

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=1343298581.2609.8.camel@offbook \
    --to=dave@gnu.org \
    --cc=kzak@redhat.com \
    --cc=util-linux@jelmail.com \
    --cc=util-linux@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;
as well as URLs for NNTP newsgroup(s).