All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Pittman <daniel@rimspace.net>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Pascal Schmidt <der.eremit@email.de>, Jens Axboe <axboe@suse.de>,
	<linux-kernel@vger.kernel.org>
Subject: Re: 2.9test9-mm1 and DAO ATAPI cd-burning corrupt
Date: Wed, 12 Nov 2003 11:04:25 +1100	[thread overview]
Message-ID: <87k766cv06.fsf@enki.rimspace.net> (raw)
In-Reply-To: <Pine.LNX.4.44.0311111348190.1960-100000@home.osdl.org> (Linus Torvalds's message of "Tue, 11 Nov 2003 14:04:17 -0800 (PST)")

On Tue, 11 Nov 2003, Linus Torvalds wrote:
> On Tue, 11 Nov 2003, Pascal Schmidt wrote:
>> 
>> dd behaves strangly on the MO drive. I've tried with 2.6.0-test9 and
>> the patch appended to the end of this mail.
>> 
>> # dd if=testfile of=/dev/hde bs=4096 count=1
>> dd: writing `/dev/hde': no space left on device
>> 1+0 records in
>> 0+0 records out
>> 
>> # dd if=/dev/hde of=mofile bs=4096 count=1
>> 0+0 records in
>> 0+0 records out
>> 
>> Mounting the disc read-only works, however, and I can read all the
>> data on it without problems.
> 
> Ok, that's just strange. You can't even _read_ from the raw device,
> but the mount works ok?
> 
> And you got no IO errors anywhere? I don't see why the write would
> fail silently.
> 
> I wonder whether the disk capacity is set to zero. See 
> drivers/ide/ide-cd.c, and in particular the 
> 
>         /* Now try to get the total cdrom capacity. */
>         stat = cdrom_get_last_written(cdi, (long *) &toc->capacity);
>         if (stat || !toc->capacity)
>                 stat = cdrom_read_capacity(drive, &toc->capacity,
>                 sense);
>         if (stat)
>                 toc->capacity = 0x1fffff;
> 
> and see what that says.. I really think you should start sprinkling 
> printk's around the thing to determine what goes on..

The '|| !toc->capacity' part of that code exists because I have a DVD
drive that got zero capacity from the cdrom_get_last_written call.

The symptoms were exactly the same as above - I could mount and use the
thing correctly, but the raw device was not readable at all.

Maybe cdrom_read_capacity can also return zero for some broken
situations?

      Daniel

-- 
The youth gets together his materials to build a bridge to the moon, or,
perchance, a palace or temple on the earth, and, at length, the middle-aged
man concludes to build a woodshed with them.
        -- Henry David Thoreau

  parent reply	other threads:[~2003-11-12  0:04 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
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 [this message]
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=87k766cv06.fsf@enki.rimspace.net \
    --to=daniel@rimspace.net \
    --cc=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 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.