lkml.org 
[lkml]   [2003]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [IDE] trying to make MO drive work with ide-floppy/ide-cd
On Tue, 6 May 2003, Jens Axboe wrote:

>> ------------[ cut here ]------------
>> kernel BUG at fs/buffer.c:2607!
> Not good. Does it work correctly with 2kb block size? I would not be
> surprised if ide-cd had multi page bio bugs...

The ext2 filesystem in question uses 2kb block size. The drive can also
handle disks with 1kb and 512b block sizes, but I don't have of those
disks (MOs are hard sectored, so you can't format one to use a different
hw block size).

Under 2.4 with ide-scsi/sd, ext2 with 2kb block size works, other block
sizes for the filesystem don't work (at least that was the case about a
year ago when I tried other sizes the last time).

>> My patch:
> Not bad, see that wasn't so hard.

Turned out to be quite easy once I found out that ide_cdrom_attach was
checking for drive->media == ide_cdrom. I had only looked as far as
ide_cdrom_setup before. :)

Too bad writing doesn't work out quite yet. At least the directory entry
got written, so part of it seems to work.

> Does it load ide-cd without errors with this one?

Yes, the error messages are gone. I skipped all the capability tests that
go to the drive. Maybe that skips to much. Where does the hw block size
get detected? I hope I didn't skip that part...

--
Ciao,
Pascal

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.066 / U:0.908 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site