linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Viro <viro@math.psu.edu>
To: Erik Andersen <andersen@codepoet.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [CFT][PATCH] cleanup of partition code
Date: Mon, 1 Oct 2001 04:03:45 -0400 (EDT)	[thread overview]
Message-ID: <Pine.GSO.4.21.0110010345110.14660-100000@weyl.math.psu.edu> (raw)
In-Reply-To: <20011001000446.A24245@codepoet.org>



On Mon, 1 Oct 2001, Erik Andersen wrote:

> Note the ll_rw_block msg from where the acorn stuff is not reading in units
> of the physical sector size?  Also notice the "unable to read..." msg, which
> is where acorn chokes the partition table scanning...
> 
> 
> So now, while fdisk is still able to see that partitions exist
> 
> 	[andersen@dillweed andersen]$ fdisk -l /dev/sda
> 	Note: sector size is 2048 (not 512)
> 
> 	Disk /dev/sda: 64 heads, 32 sectors, 151 cylinders
> 	Units = cylinders of 2048 * 2048 bytes
> 
> 	   Device Boot    Start       End    Blocks   Id  System
> 	/dev/sda1   *         1       151    618432   83  Linux
> 
> the acorn stuff has caused the partition scan to abort prematurely, such that
> proc partitions (and Linux) know nothing about the device's partitions.  I can
> give you a dd from one of these disks, but I doubt that would show the error... 

	OK, first of all, it's _not_ an acorn partition table at all.
It's a garden-variety DOS partition table.

	Actually, you've found a rather nasty bug in acorn.c - code in
the current tree fails if it tries to look for acorn-style partition
table on a large-sector disk.  Fails with IO error, and reports that
to high-level code in check_partitions().  Which decides to stop.
msdos_partition() would be called after acorn_partition(), so it
doesn't get called at all.

	Lovely...  OK, there are two possible fixes - one is to
add check for block size into acorn_partition() (it's checked on
almost all branches, but there's one where it's missing).  Another
is to switch to new partition code, which works with any physical
sector size.

	I'm putting the new patch on anonftp -
ftp.math.psu.edu/pub/viro/partition-c-S11-pre1

	News:
* massaged into form that should be easy to backport.
* acorn.c converted (_completely_ untested)

	Folks, please help to test that sucker. 


  parent reply	other threads:[~2001-10-01  8:03 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-30 22:31 [CFT][PATCH] cleanup of partition code Alexander Viro
2001-09-30 23:28 ` Tom Rini
2001-10-01  1:57 ` Alexander Viro
2001-10-01  6:54   ` Anton Altaparmakov
2001-11-06 20:25     ` Linux kernel 2.4 and TCP terminations per second Imran Badr
2001-11-06 23:22       ` Alan Cox
2001-11-06 23:34         ` Imran Badr
2001-11-06 23:43           ` Roland Dreier
2001-11-07  0:02             ` Imran Badr
2001-11-06 23:56         ` David Lang
2001-11-07  0:29           ` Alan Cox
2001-10-01 11:40   ` [CFT][PATCH] cleanup of partition code Alexander Viro
2001-10-01  4:22 ` Erik Andersen
2001-10-01  5:27   ` Alexander Viro
2001-10-01  6:04     ` Erik Andersen
2001-10-01  6:48       ` Alexander Viro
2001-10-01  8:03       ` Alexander Viro [this message]
2001-10-01  9:06         ` Nick Craig-Wood
2001-10-01 21:11           ` Alex Bligh - linux-kernel
2001-10-01 23:15         ` Erik Andersen
2001-10-02 21:49 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=Pine.GSO.4.21.0110010345110.14660-100000@weyl.math.psu.edu \
    --to=viro@math.psu.edu \
    --cc=andersen@codepoet.org \
    --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;
as well as URLs for NNTP newsgroup(s).