public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Seewer Philippe" <philippe.seewer@bfh.ch>
To: "Phillip Susi" <psusi@cfl.rr.com>
Cc: "Alan Cox" <alan@lxorguk.ukuu.org.uk>,
	"Bartlomiej Zolnierkiewicz" <bzolnier@gmail.com>,
	<linux-kernel@vger.kernel.org>
Subject: Re: RFC: disk geometry via sysfs
Date: Thu, 16 Feb 2006 16:41:10 +0100	[thread overview]
Message-ID: <43F49D16.6060801@bfh.ch> (raw)
In-Reply-To: <43F49BF4.5090705@cfl.rr.com>



Phillip Susi wrote:
> Seewer Philippe wrote:
> 
>> Thats the problem point here. As of 2.6 the kernel does no longer know
>> anything about bios geometry. The exception here might be for older
>> drives which do not support lba, where the physical geometry is the one
>> the bios reports (if not configured diffently).
>>
>> This is, as we all know, intentional. Because it's quite impossible to
>> always and accurately match bios disk information to drives reported by
>> drivers.
>>
> 
> If it is intentional that the kernel not keep track of the bios
> geometry, then it should not track geometry at all.  The only reason for
> the existence of GETGEO is so partitioning tools can figure out what to
> put in the MBR for the disk geometry.  If they do not get the values
> that the bios reports, then they are getting useless information.
> 
> Why give the illusion that they got the right information when you are
> just lieing to them?  Wouldn't it be better to fail the request so the
> tool knows it can't get the right info from the system?
> 
>> Not only windows but other os as well.
>>
>> The problem here is a general interface problem. Tools want one
>> interface (be it ioctl or sysfs). If they can depend on a kernel
>> interface only partially and have to determine values themeself
>> otherwise, that interface should be dropped. Again i'm talking about the
>> interface, not actual code which might still depend on c/h/s.
>>
> 
> Exactly, the interface should be completely dropped since it really is
> useless to the tools anyhow without accurate information from the bios.
> 
>> On the other hand, if we keep that interface (or perhaps ioctl for
>> compatibility and sysfs for newer things) and introduce a means to tell
>> the driver via userspace what we want, many things can be solved. For
>> example for older drives which need chs, userspace can tell the driver
>> what the bios uses if values differ. For other implementations which
>> return defaults which are correct in 80% of all cases, the other 20% can
>> be overridden.
>>
> 
> That is true, but since the kernel doesn't use this information, it
> amounts to holding onto a user space configuration parameter.  Since
> it's just a user space configuration parameter, shouldn't that go in a
> conf file in /etc or something, rather than burdening the kernel with
> that information?  And since the kernel won't remember the settings
> across boots, then you're going to end up with them stored in a conf
> file anyhow with a boot time script that copies it to the kernel, so
> that fdisk can read it back from the kernel later.  Since you likely
> will only partition a drive when installing, is there even a need to
> store it at all, let alone in the kernel?  Just let fdisk ask the user
> or choose defaults.
> 
>> It's of course not really the kernel's responsability to fix things (or
>> better allow the user to fix things) not important to Linux, but i think
>> for the sake of compatility necessary.
>>
> 
The problem does not end with fdisk. There are tons of tools (sfdisk,
parted, dosemu, ...) which would be affected.

  reply	other threads:[~2006-02-16 15:41 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-10 13:06 RFC: disk geometry via sysfs Seewer Philippe
2006-02-13  9:56 ` Bartlomiej Zolnierkiewicz
2006-02-15  7:57   ` Seewer Philippe
2006-02-13 16:32 ` Phillip Susi
2006-02-13 19:02   ` Seewer Philippe
2006-02-13 19:22     ` linux-os (Dick Johnson)
2006-02-13 19:36       ` Phillip Susi
2006-02-14 16:35         ` Seewer Philippe
2006-02-13 19:34     ` Phillip Susi
     [not found]       ` <43F206E7.70601@bfh.ch>
2006-02-14 18:19         ` Phillip Susi
2006-02-15  8:39           ` Seewer Philippe
2006-02-15  8:51             ` Bartlomiej Zolnierkiewicz
2006-02-15  9:01               ` Seewer Philippe
2006-02-15 14:06                 ` Alan Cox
2006-02-15 14:11                   ` Seewer Philippe
2006-02-15 15:15                     ` Alan Cox
2006-02-15 15:29                       ` Phillip Susi
2006-02-16  8:12                         ` Seewer Philippe
2006-02-16 15:36                           ` Phillip Susi
2006-02-16 15:41                             ` Seewer Philippe [this message]
2006-02-16 16:15                               ` Phillip Susi
2006-02-15 15:20                   ` Phillip Susi
2006-02-15 16:06                     ` Alan Cox
2006-02-15 16:20                       ` Phillip Susi
2006-02-15 17:32                         ` Alan Cox
2006-02-15 18:43                           ` Phillip Susi
2006-02-15 19:23                             ` linux-os (Dick Johnson)
2006-02-15 20:54                               ` Phillip Susi
2006-02-15 21:41                                 ` linux-os (Dick Johnson)
2006-02-15 22:43                                   ` Phillip Susi
2006-02-16 12:33                                     ` linux-os (Dick Johnson)
2006-02-16 15:26                                       ` Phillip Susi
2006-02-16 16:15                                         ` Seewer Philippe
2006-02-16 17:01                                           ` Phillip Susi
2006-02-16 16:39                                         ` linux-os (Dick Johnson)
2006-02-16 17:09                                           ` Phillip Susi
2006-02-16 19:01                                             ` linux-os (Dick Johnson)
2006-02-16 19:55                                               ` Phillip Susi
2006-02-16  8:18                           ` Seewer Philippe
2006-02-16 18:14                       ` Matt Domsch

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=43F49D16.6060801@bfh.ch \
    --to=philippe.seewer@bfh.ch \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=bzolnier@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=psusi@cfl.rr.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