From: Erik Andersen <andersen@codepoet.org>
To: Alexander Viro <viro@math.psu.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [CFT][PATCH] cleanup of partition code
Date: Mon, 1 Oct 2001 00:04:46 -0600 [thread overview]
Message-ID: <20011001000446.A24245@codepoet.org> (raw)
In-Reply-To: <20010930222210.A24037@codepoet.org> <Pine.GSO.4.21.0110010126001.14026-100000@weyl.math.psu.edu>
In-Reply-To: <Pine.GSO.4.21.0110010126001.14026-100000@weyl.math.psu.edu>
On Mon Oct 01, 2001 at 01:27:54AM -0400, Alexander Viro wrote:
>
>
> On Sun, 30 Sep 2001, Erik Andersen wrote:
>
> > On Sun Sep 30, 2001 at 06:31:55PM -0400, Alexander Viro wrote:
> > >
> > > One thing that doesn't work yet is support of Acorn partitions -
> > > I'm switching it to pagecache right now.
> >
> > Well, acorn is broken anyways.... Try enabling in on a device
> > with native 2048 byte sectors and _no_ partition table will be
> > found on those devices (just an error msg resulting from acorn)
>
> Could you send me an example of such animal? I don't mean the disk itself -
> just the contents of relevant sectors (i.e. everything except the contents
> of partitions themselves).
Here is what I normally see (in this case with 2.4.9-ac17):
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.1
<Adaptec 2940 Ultra SCSI adapter>
aic7880: Ultra Single Channel A, SCSI Id=7, 16/255 SCBs
(scsi0:A:4): 10.000MB/s transfers (10.000MHz, offset 15)
Vendor: OLYMPUS Model: MOS364 Rev: 1.02
Type: Optical Device ANSI SCSI revision: 02
(scsi0:A:5): 10.000MB/s transfers (10.000MHz, offset 15)
Vendor: OLYMPUS Model: MOS364 Rev: 1.02
Type: Optical Device ANSI SCSI revision: 02
[----------snip-------------]
Attached scsi removable disk sda at scsi0, channel 0, id 4, lun 0
Attached scsi removable disk sdb at scsi0, channel 0, id 5, lun 0
SCSI device sda: 310352 2048-byte hdwr sectors (636 MB)
sda: Write Protect is off
sda: sda1
SCSI device sdb: 310352 2048-byte hdwr sectors (636 MB)
sdb: Write Protect is off
sdb: sdb1
Everything looks fairly normal... I have 2 640Meg SCSI magneto optical drives
with a single partiton on the media in each (working as expected). Now lets
enable some stuff:
+CONFIG_ACORN_PARTITION=y
+CONFIG_ACORN_PARTITION_ICS=y
+CONFIG_ACORN_PARTITION_ADFS=y
+CONFIG_ACORN_PARTITION_POWERTEC=y
+CONFIG_ACORN_PARTITION_RISCIX=y
Now I see:
Attached scsi removable disk sda at scsi0, channel 0, id 4, lun 0
Attached scsi removable disk sdb at scsi0, channel 0, id 5, lun 0
SCSI device sda: 310352 2048-byte hdwr sectors (636 MB)
sda: Write Protect is off
sda:<5>ll_rw_block: device 08:00: only 2048-char blocks implemented (1024)
unable to read boot sectors / partition sectors
SCSI device sdb: 310352 2048-byte hdwr sectors (636 MB)
sdb: Write Protect is off
sdb:<5>ll_rw_block: device 08:10: only 2048-char blocks implemented (1024)
unable to read boot sectors / partition sectors
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...
-Erik
--
Erik B. Andersen email: andersee@debian.org, formerly of Lineo
--This message was written using 73% post-consumer electrons--
next prev parent reply other threads:[~2001-10-01 6:04 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 [this message]
2001-10-01 6:48 ` Alexander Viro
2001-10-01 8:03 ` Alexander Viro
2001-10-01 9:06 ` Nick Craig-Wood
2001-10-01 21:11 ` Alex Bligh - linux-kernel
2001-10-01 23:15 ` Erik Andersen
-- strict thread matches above, loose matches on Subject: below --
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=20011001000446.A24245@codepoet.org \
--to=andersen@codepoet.org \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@math.psu.edu \
/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