mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Wakko Warner <wakko@animx.eu.org>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: /proc/ide/hd?/settings obsolete in 2.6.
Date: Thu, 5 May 2005 12:33:16 -0400	[thread overview]
Message-ID: <20050505163316.GB17861@animx.eu.org> (raw)
In-Reply-To: <1115310081.19842.89.camel@localhost.localdomain>

Alan Cox wrote:
> > As stated in my last email, I am using EDD.  I only need the legacy heads
> > and sectors.  I can figure out the cylinders by that and the size of the
> > disk.
> 
> Which legacy size do you want though - the partition label, the disks
> opinion this week or the CMOS. They can all be different. Linux used to
> play "guess roughly what Windows might guess".

I think what I wanted got burried in a small geometry war.

> > I have some utils (mkdosfs comes to mind) that do not let the user specify
> > heads/sectors/cyls (it doesn't use cyl actually).
> 
> Presumably they need to follow the MS sequence of guesses then, even on
> non PC systems ? So partition table, cmos, drive in that order if I
> remember rightly.

Not the initial problem.

Let me try to state what I originally wanted.

I am currently using edd to get the legacy heads and sectors then using that
and the size of the disk, I deduce the cylinders.  Works great, no problems.
fdisk will let me specify and it works great.  Ok, so I can do this guessing
game just fine.

Now, i have programs that I can't tell it the geometry (which it does use
and requires to be correct.  My guesses using edd are correct).  I was using
/proc/ide/hdX/settings to tell the kernel what geometry I want so the
programs that can only ask the kernel can get it right.

2.6.12-rc2.  Works great.  But what's this?  it's obsolete?  Ok, it's
obsolete, what is the non-obsolete way of SETTING the geometry.  I looked at
ide.c and there's no HDSETGEO.  I considered writing this myself or
unobsolete the /proc interface for my kernels, but if there's a "right" way
of doing this, I'd rather do it.

If the "right" way is via IOCTL, my scripts are written in perl that do the
bulk of the guess work.

I did not want this to be a geometry flame war.  I realize linux doesn't
give a flying whatever about the geometry (only the number of sectors).  The
systems I'm doing this with run OSs other than linux and they do care (i
wish they didn't!)  I wasn't asking this for someone to tell me I didn't
need it.

-- 
 Lab tests show that use of micro$oft causes cancer in lab animals

  reply	other threads:[~2005-05-05 16:33 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-05  0:48 Wakko Warner
2005-05-05 10:10 ` Bartlomiej Zolnierkiewicz
2005-05-05 11:13   ` Wakko Warner
2005-05-05 12:13     ` Bartlomiej Zolnierkiewicz
2005-05-05 14:56       ` Alan Cox
2005-05-05 15:38         ` Wakko Warner
2005-05-05 16:21           ` Alan Cox
2005-05-05 16:33             ` Wakko Warner [this message]
2005-05-05 17:58               ` Alan Cox
2005-05-05 20:53                 ` Wakko Warner
2005-05-05 22:16                   ` Alan Cox
2005-05-05 15:33       ` Wakko Warner
2005-05-05 15:53         ` Pozsár Balázs
2005-05-05 16:20           ` Wakko Warner

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=20050505163316.GB17861@animx.eu.org \
    --to=wakko@animx.eu.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --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®