From: Jens Axboe <axboe@suse.de>
To: Pascal Schmidt <der.eremit@email.de>
Cc: Linus Torvalds <torvalds@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: 2.9test9-mm1 and DAO ATAPI cd-burning corrupt
Date: Wed, 12 Nov 2003 19:31:05 +0100 [thread overview]
Message-ID: <20031112183105.GR21141@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.44.0311121910010.983-100000@neptune.local>
On Wed, Nov 12 2003, Pascal Schmidt wrote:
> On Tue, 11 Nov 2003, Linus Torvalds wrote:
>
> > Does it work if you change the order of those two things in ide-cd.c (or
> > just remove the call to "cdrom_get_last_written()" entirely, so that it
> > always just does the sane thing).
>
> I've moved the cdrom_read_capacity() to the top of cdrom_read_toc and
> now the capacity gets set correctly and everything seems to work just
> fine.
>
> dd to and from the raw device works, as do mke2fs and e2fsck. I could
> also mount the disk read-write, write a 10MB file to it, and umount
> again without problems. Then I rebooted into 2.4 and verified that the
> filesystem is okay and the 10MB file made it to disk correctly.
>
> Lookin' good so far.
Great! Can you please send a diff for review? It speaks more clearly
than 1000 descriptions of what a patch does :)
> Now, assuming there is a reason that the cdrom_read_capacity() function
> is only used as a fallback for normal ide-cd devices, my change might
Fall back?
> break non-MO devices. I also don't know what to do when read_capacity
> fails - setting capacity to 0 obviously breaks as we've seen before,
> so maybe setting it to the lowest possible MO size (128M) would be a
> good way to handle that situation.
>
> Jens, what do you think?
Do what it currently does, set it to some high value? Then we'll just
rely on the drive properly failing read requests. Better than not being
able to reach the files.
--
Jens Axboe
next prev parent reply other threads:[~2003-11-12 18:31 UTC|newest]
Thread overview: 132+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.44.0311110950250.30657-100000@home.osdl.org>
2003-11-11 19:41 ` 2.9test9-mm1 and DAO ATAPI cd-burning corrupt Pascal Schmidt
2003-11-11 22:50 ` Martin Schlemmer
2003-11-11 21:41 ` Pascal Schmidt
2003-11-11 22:04 ` Linus Torvalds
2003-11-11 23:46 ` Pascal Schmidt
2003-11-12 1:14 ` Linus Torvalds
2003-11-12 17:32 ` Pascal Schmidt
2003-11-12 18:20 ` Pascal Schmidt
2003-11-12 18:31 ` Jens Axboe [this message]
2003-11-12 19:44 ` Pascal Schmidt
2003-11-13 11:52 ` Bill Davidsen
2003-11-13 12:20 ` Jens Axboe
2003-11-13 13:19 ` Pascal Schmidt
2003-11-13 14:35 ` Jens Axboe
2003-11-13 15:22 ` Linus Torvalds
2003-11-13 15:27 ` Jens Axboe
2003-11-15 13:16 ` Bill Davidsen
2003-11-13 13:17 ` Pascal Schmidt
2003-11-15 13:04 ` Bill Davidsen
2003-11-12 0:04 ` Daniel Pittman
2003-11-12 0:09 ` Pascal Schmidt
[not found] <RoMa.Mi.7@gated-at.bofh.it>
[not found] ` <RpI1.2RG.5@gated-at.bofh.it>
[not found] ` <RqNS.54j.11@gated-at.bofh.it>
2003-11-13 15:05 ` Pascal Schmidt
2003-11-13 15:28 ` Jens Axboe
2003-11-13 15:32 ` Pascal Schmidt
[not found] <QyWV.2Zi.1@gated-at.bofh.it>
[not found] ` <QzzF.3WK.3@gated-at.bofh.it>
2003-11-11 16:43 ` Pascal Schmidt
2003-11-11 17:00 ` Linus Torvalds
[not found] <OXZz.7Uj.3@gated-at.bofh.it>
[not found] ` <OY9D.86A.29@gated-at.bofh.it>
2003-11-06 21:22 ` Pascal Schmidt
2003-11-03 18:22 Prakash K. Cheemplavam
2003-11-05 8:40 ` Jens Axboe
2003-11-05 9:55 ` Prakash K. Cheemplavam
2003-11-05 9:54 ` Jens Axboe
2003-11-05 10:01 ` Prakash K. Cheemplavam
2003-11-05 10:01 ` Jens Axboe
2003-11-05 10:12 ` Prakash K. Cheemplavam
2003-11-05 10:12 ` Jens Axboe
2003-11-05 10:20 ` Prakash K. Cheemplavam
2003-11-05 10:22 ` Jens Axboe
2003-11-05 10:31 ` Prakash K. Cheemplavam
2003-11-05 12:39 ` Jens Axboe
2003-11-05 18:47 ` Prakash K. Cheemplavam
2003-11-06 9:17 ` Jens Axboe
2003-11-06 12:42 ` Prakash K. Cheemplavam
2003-11-06 12:59 ` Nick Piggin
2003-11-06 13:00 ` Jens Axboe
2003-11-06 13:05 ` Nick Piggin
2003-11-06 13:05 ` Jens Axboe
2003-11-06 13:11 ` Nick Piggin
2003-11-06 13:11 ` Jens Axboe
2003-11-06 13:31 ` Prakash K. Cheemplavam
2003-11-06 13:31 ` Jens Axboe
2003-11-06 13:44 ` Prakash K. Cheemplavam
2003-11-06 13:47 ` Jens Axboe
2003-11-06 13:54 ` Nick Piggin
2003-11-06 13:52 ` Jens Axboe
2003-11-10 21:45 ` bill davidsen
2003-11-06 14:00 ` Prakash K. Cheemplavam
2003-11-06 13:58 ` Prakash K. Cheemplavam
2003-11-06 13:51 ` Jens Axboe
2003-11-06 14:31 ` Prakash K. Cheemplavam
2003-11-06 17:42 ` Matthew Reppert
2003-11-06 18:48 ` Prakash K. Cheemplavam
2003-11-06 19:45 ` Maciej Zenczykowski
2003-11-06 14:38 ` Prakash K. Cheemplavam
2003-11-06 18:49 ` Martin Josefsson
2003-11-06 19:06 ` Prakash K. Cheemplavam
2003-11-06 20:07 ` Martin Josefsson
[not found] ` <3FAB0754.2040209@cyberone.com.au>
2003-11-07 11:18 ` Prakash K. Cheemplavam
2003-11-07 11:31 ` Nick Piggin
[not found] ` <3FAB8428.7090307@gmx.de>
[not found] ` <3FAB870D.1050003@cyberone.com.au>
2003-11-07 12:53 ` Prakash K. Cheemplavam
2003-11-07 13:03 ` Nick Piggin
[not found] ` <3FAB9C2B.2040907@gmx.de>
[not found] ` <3FAB9F97.6050706@cyberone.com.au>
[not found] ` <3FABA364.9000404@gmx.de>
[not found] ` <3FABA5A7.904@cyberone.com.au>
[not found] ` <3FABA6EF.90207@gmx.de>
[not found] ` <3FABA788.1080000@cyberone.com.au>
[not found] ` <3FABAB5B.5090105@gmx.de>
[not found] ` <3FABAE0B.6020601@cyberone.com.au>
[not found] ` <3FABB08B.3080006@gmx.de>
[not found] ` <3FABB571.6070804@cyberone.com.au>
2003-11-07 15:48 ` Prakash K. Cheemplavam
2003-11-08 2:14 ` Nick Piggin
2003-11-08 12:31 ` Prakash K. Cheemplavam
2003-11-08 21:17 ` Randy.Dunlap
2003-11-10 22:23 ` bill davidsen
2003-11-11 14:46 ` Zwane Mwaikambo
2003-11-11 15:31 ` bill davidsen
2003-11-10 22:26 ` bill davidsen
2003-11-10 21:25 ` bill davidsen
2003-11-06 19:14 ` bill davidsen
2003-11-06 19:45 ` Linus Torvalds
2003-11-07 9:13 ` Rob Landley
2003-11-07 14:21 ` Bill Davidsen
2003-11-07 23:25 ` Rob Landley
2003-11-08 2:39 ` Nick Piggin
2003-11-07 12:46 ` Jens Axboe
2003-11-06 19:55 ` Gene Heskett
2003-11-06 22:36 ` Bill Davidsen
2003-11-07 0:51 ` Gene Heskett
2003-11-10 22:14 ` bill davidsen
2003-11-05 10:26 ` Nick Piggin
2003-11-05 10:29 ` Jens Axboe
2003-11-05 10:36 ` Prakash K. Cheemplavam
2003-11-05 11:14 ` Nick Piggin
2003-11-05 12:38 ` Jens Axboe
2003-11-05 17:36 ` Prakash K. Cheemplavam
2003-11-05 18:43 ` Prakash K. Cheemplavam
2003-11-05 10:54 ` Gene Heskett
2003-11-05 11:26 ` Jens Axboe
2003-11-05 10:33 ` Prakash K. Cheemplavam
2003-11-06 19:08 ` bill davidsen
2003-11-06 19:35 ` Linus Torvalds
2003-11-06 19:56 ` John Bradford
2003-11-07 14:10 ` Bill Davidsen
2003-11-07 15:01 ` Linus Torvalds
2003-11-08 15:06 ` Ragnar Hojland Espinosa
2003-11-08 17:52 ` Linus Torvalds
2003-11-08 18:16 ` viro
2003-11-10 19:22 ` Bill Davidsen
2003-11-10 19:01 ` Bill Davidsen
2003-11-10 19:25 ` Linus Torvalds
2003-11-10 20:03 ` Bill Davidsen
2003-11-10 20:22 ` Linus Torvalds
2003-11-11 4:48 ` bill davidsen
2003-11-11 5:40 ` Linus Torvalds
2003-11-11 17:49 ` Diego Calleja García
2003-11-11 18:15 ` Diego Calleja García
2003-11-12 22:58 ` bill davidsen
2003-11-12 23:47 ` Bartlomiej Zolnierkiewicz
2003-11-13 7:06 ` Jens Axboe
2003-11-15 13:13 ` Bill Davidsen
2003-11-15 13:43 ` Jens Axboe
2003-11-17 13:23 ` Bill Davidsen
2003-11-06 21:10 ` Prakash K. Cheemplavam
2003-11-06 21:40 ` Prakash K. Cheemplavam
2003-11-07 21:05 ` Jens Axboe
2003-11-09 10:49 ` Prakash K. Cheemplavam
2003-11-10 22:06 ` bill davidsen
2003-11-07 9:46 ` Xavier Bestel
2003-11-07 8:24 ` Jens Axboe
2003-11-05 11:17 ` DervishD
[not found] ` <3FA8C8E5.10903@gmx.de>
[not found] ` <20031105095350.GF1477@suse.de>
2003-11-05 10:00 ` Prakash K. Cheemplavam
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=20031112183105.GR21141@suse.de \
--to=axboe@suse.de \
--cc=der.eremit@email.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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