From: Andries.Brouwer@cwi.nl
To: Andries.Brouwer@cwi.nl, Holger.Smolinski@de.ibm.com,
dwguest@win.tue.nl, linux-kernel@vger.kernel.org,
torvalds@transmeta.com
Subject: Re: [PATCH] partitions/ibm.c
Date: Mon, 26 Feb 2001 14:05:04 +0100 (MET) [thread overview]
Message-ID: <UTC200102261305.OAA04955.aeb@vlet.cwi.nl> (raw)
From Holger.Smolinski@de.ibm.com Mon Feb 26 12:10:59 2001
Andries, others,
Thanks for hacking through the code of fs/partitions/ibm.c.
Your patch does not work at all because you are relying on the
data in the part component of the hd structure, which does not
hold the geometry data of the disk but the data of the partitions
on that disk.
Hmm. To me "geometry" means things with sectors, heads and cylinders -
something you do not need at all. You only need to know whether you
have to read sector 1 or 2 from this disk.
Besides that, exactly these data are to be set up
by the code in fs/partitions/ibm.c.
No.
ibm_partition() is called from check_partition(), which does
first_sector = hd->part[MINOR(dev)].start_sect;
and then calls ibm_partition() with first_sector as third parameter.
Clearly, this assumes that hd->part[MINOR(dev)].start_sect
has a value already.
The "start" field of the struct returned by HDIO_GETGEO does not
tell us where the partition table lives.
It tells us where the partition starts. Maybe there is no table.
For an entire disk the answer will be zero.
Thus, I think the present setup of ibm_partition() is broken.
(If I have a disk with ibm partition, then it seems right now
it cannot be moved to some ide or scsi machine because the
information you want is returned only by the
device->discipline->fill_geometry()
call in dasd.c, and not by the HDIO_GETGEO of any other driver.)
Andries
[And, of course, similarly, these fill_geometry() routines are broken.]
next reply other threads:[~2001-02-26 14:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-26 13:05 Andries.Brouwer [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-02-27 0:51 Andries.Brouwer
2001-02-26 15:11 Holger.Smolinski
2001-02-26 10:15 Holger.Smolinski
2001-02-24 3:38 Guest section DW
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=UTC200102261305.OAA04955.aeb@vlet.cwi.nl \
--to=andries.brouwer@cwi.nl \
--cc=Holger.Smolinski@de.ibm.com \
--cc=dwguest@win.tue.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.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
all inboxes | Powered by JetHome®