From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758263AbYELUel (ORCPT ); Mon, 12 May 2008 16:34:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754165AbYELUed (ORCPT ); Mon, 12 May 2008 16:34:33 -0400 Received: from mx.stud.uni-hannover.de ([130.75.176.3]:61678 "EHLO studserv.stud.uni-hannover.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752778AbYELUec (ORCPT ); Mon, 12 May 2008 16:34:32 -0400 Date: Mon, 12 May 2008 22:34:22 +0200 From: Ingo Saitz 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 Message-ID: <20080512203422.GA2641@schwan.zoo> References: <20080508112108.GA2744@schwan.zoo> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline In-Reply-To: <20080508112108.GA2744@schwan.zoo> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Spam-Report: ALL_TRUSTED,BAYES_50,LONGWORDS_15,USER_IN_WHITELIST_TO,V_9_RND_SMALL_WORDS Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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 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 Signed-off-by: James Bottomley :040000 040000 704d23cdc9b3e5d596d879b4705586966b76e74d 9f1f71802ee45e734758d2c89d0b90102b549bdb M drivers ----->8----->8----- I'm forwarding this to the linux-scsi list, too. Ingo --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIKKnO4XrXtQkN2NURAuE8AJ9VFuMjXXq37zk8RHnhiYfavNXq1QCgpYe+ jiJz5S3sBk+D0KJ4F4WsLFs= =Nkum -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV--