public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Saitz <Ingo.Saitz@stud.uni-hannover.de>
To: linux-kernel@vger.kernel.org
Cc: linux-scsi@vger.kernel.org
Subject: Re: PROBLEM: 2.6.25: sr0 cdrom does not change medium size on medium change
Date: Mon, 12 May 2008 22:34:22 +0200	[thread overview]
Message-ID: <20080512203422.GA2641@schwan.zoo> (raw)
In-Reply-To: <20080508112108.GA2744@schwan.zoo>

[-- Attachment #1: Type: text/plain, Size: 1357 bytes --]

I did some git bisecting during which I found it does matte wether you
let the drive settle before mounting or not during the 2.6.25 devcycle.
So after being struck at some random position I redid the bisection.

This commit applies to: changing the medium (cd/dvd), waiting until the
drive settles and mounting it. The kernel no longer changes the size of
the medium in /sys/block/sr0/size, giving read errors for bigger mediae.

-----8<-----8<-----
210ba1d1724f5c4ed87a2ab1a21ca861a915f734 is first bad commit
commit 210ba1d1724f5c4ed87a2ab1a21ca861a915f734
Author: James Bottomley <James.Bottomley@HansenPartnership.com>
Date:   Sat Jan 5 10:39:51 2008 -0600

    [SCSI] sr: update to follow tray status correctly

    Based on an original patch from: David Martin <tasio@tasio.net>

    When trying to get the drive status via ioctl CDROM_DRIVE_STATUS, with
    no disk it gives CDS_TRAY_OPEN even if the tray is closed.

    ioctl works as expected with ide-cd driver.

    Gentoo bug report: http://bugs.gentoo.org/show_bug.cgi?id=196879

    Cc: Maarten Bressers <mbres@gentoo.org>
    Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>

:040000 040000 704d23cdc9b3e5d596d879b4705586966b76e74d 9f1f71802ee45e734758d2c89d0b90102b549bdb M      drivers
----->8----->8-----

I'm forwarding this to the linux-scsi list, too.

    Ingo

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

       reply	other threads:[~2008-05-12 20:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080508112108.GA2744@schwan.zoo>
2008-05-12 20:34 ` Ingo Saitz [this message]
2008-05-13 16:09   ` PROBLEM: 2.6.25: sr0 cdrom does not change medium size on medium change Ingo Saitz
2008-05-08 11:21 Ingo Saitz

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=20080512203422.GA2641@schwan.zoo \
    --to=ingo.saitz@stud.uni-hannover.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@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