All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Pascal Schmidt <der.eremit@email.de>,
	Bill Davidsen <davidsen@tmr.com>,
	linux-kernel@vger.kernel.org
Subject: Re: 2.9test9-mm1 and DAO ATAPI cd-burning corrupt
Date: Thu, 13 Nov 2003 16:27:29 +0100	[thread overview]
Message-ID: <20031113152729.GL4441@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.44.0311130712120.8093-100000@home.osdl.org>

On Thu, Nov 13 2003, Linus Torvalds wrote:
> 
> On Thu, 13 Nov 2003, Jens Axboe wrote:
> 
> > On Thu, Nov 13 2003, Pascal Schmidt wrote:
> > >  
> > > My patch from yesterday should handle that situation. 
> > > cdrom_get_last_written is allowed to override the capacity from
> > > cdrom_read_capacity.
> > 
> > Yep, that is fine.
> 
> Well, there is a good argument for not bothering with the 
> "cdrom_get_last_written" at all: the SCSI layer never does anything like 
> that as far as I can see, so arguably everybody who ever used ide-scsi 
> would only ever have seen the READ_CAPACITY command be used. And nobody 
> ever complained about bad capacitites as far as I can remember..
> 
> But I might have missed something in the SCSI driver. But I actually see a
> 
> 		if (cdrom_get_last_written(..)
> 
> in sr.c, and it's been #if 0'ed out since before the Bitkeeper tree 
> started. And that code definitely does the READ_CAPACITY first.
> 
> The "sd.c" code (which is what a MO device would use) obviously doesn't do 
> cdrom_get_last_written either - it just does a READ_CAPACITY. (Well, it 
> does a READ_CAPACITY_16 if it hits a really big disk, but that only hits 
> if the disk has more than 4G sectors, so we can ignore it for CD-ROM's for 
> a while.
> 
> So I'd argue for just dropping the cdrom_get_last_written() call entirely.

Your argument isn't very good, imo. I was the one that added the
cdrom_get_last_written() calls, because with the pktcdvd written media
reading the toc or using READ_CAPACITY just didn't work.

For MO drives, DVD-RAM, and that sort of thing there's no argument -
read capacity is the way to go. For CDROMs it's not so clear.

-- 
Jens Axboe


  reply	other threads:[~2003-11-13 15:28 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
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 [this message]
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=20031113152729.GL4441@suse.de \
    --to=axboe@suse.de \
    --cc=davidsen@tmr.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.