linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Pittman <daniel@rimspace.net>
To: Jens Axboe <axboe@suse.de>
Cc: "Samuel Thibault" <Samuel.Thibault@ens-lyon.fr>,
	" Sébastien Hinderer" <Sebastien.Hinderer@libertysurf.fr>,
	linux-kernel@vger.kernel.org
Subject: Re: PROBLEM: Impossible to read files from a CD-Rom
Date: Sat, 13 Sep 2003 17:34:57 +1000	[thread overview]
Message-ID: <87he3h87ku.fsf@enki.rimspace.net> (raw)
In-Reply-To: <20030912065116.GA16813@suse.de> (Jens Axboe's message of "Fri, 12 Sep 2003 08:51:16 +0200")

On Fri, 12 Sep 2003, Jens Axboe wrote:
> On Mon, Sep 08 2003, Samuel Thibault wrote:
>> On Mon 18 aug 2003 18:35:22 GMT, Sébastien Hinderer wrote:
>> > I'm using a vanila linux-2.6.0-test3. When I try to use a CD-Rom,
>> > the mount is successful, so are the calls to ls. However, as soon
>> > as I try to read a file, I get a lot of messages such as :

[...]

>> We dug a little bit this Monday with Sebastien, and found out some
>> troubles: the call to set_capacity at the end of cdrom_read_toc()
>> writes a strange value, which is not always the same, even for the
>> same reinserted CD-ROM, seemingly because it came from
>> cdrom_get_last_written():

[...]

> I'd be more interested in fixing the real bug: why does your drive
> return zero length, and only sporadically?

This sounds somewhat like a problem I have playing DVD-R discs on one
DVD drive (Pioneer slot-loader), using Xine and the RAW device.

Basically, for some discs, the raw device cannot read any block, as the
capacity of the disc is reported as zero blocks.

I don't have trouble accessing the content on any other machine, though,
and can access the files through a mounted filesystem.

/proc/ide/hdc/capacity contains zero in these cases.

Occasionally, for a disc that does this, I get a valid (looking) size,
but not very often -- one time in twenty, at most.

I am happy to work on debugging this, if there is anything that can be
done to help identify the problem.

This only seems to occur with DVD-R discs, and without any predictable
pattern.

        Daniel

-- 
Gratitude is one of the least articulate of the emotions, 
especially when it is deep.
        -- Felix Frankfurter

      parent reply	other threads:[~2003-09-13  7:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-18 16:35 PROBLEM: Impossible to read files from a CD-Rom Sébastien Hinderer
2003-09-08 15:28 ` Samuel Thibault
2003-09-12  6:51   ` Jens Axboe
2003-09-12  9:58     ` Samuel Thibault
2003-10-08 20:32       ` Samuel Thibault
2003-09-13  7:34     ` Daniel Pittman [this message]

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=87he3h87ku.fsf@enki.rimspace.net \
    --to=daniel@rimspace.net \
    --cc=Samuel.Thibault@ens-lyon.fr \
    --cc=Sebastien.Hinderer@libertysurf.fr \
    --cc=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).