Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755573AbXLTAnj (ORCPT ); Wed, 19 Dec 2007 19:43:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753927AbXLTAna (ORCPT ); Wed, 19 Dec 2007 19:43:30 -0500 Received: from wr-out-0506.google.com ([64.233.184.236]:36309 "EHLO wr-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753842AbXLTAn3 (ORCPT ); Wed, 19 Dec 2007 19:43:29 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SYJyA2Yh7rMUCWIl7rz7pH2RpjtflvObxB8tqextiHDIBlRd7asklCC24QJ/+apKnGVrRAAg96UAKoEXVPczPAcbf3B3f3bp8WyyNFPVI16TkDdYLHTSRlrmZgkExP5gvkEPqZpHMFJsSR3ISPwT9uk+Rgg+3z5CgiUDAq80KoA= Message-ID: Date: Thu, 20 Dec 2007 08:43:28 +0800 From: "Dave Young" To: "Alan Stern" Subject: Re: 2.6.24-rc5-mm1 Cc: "Andrew Morton" , linux-kernel@vger.kernel.org, mdharm-usb@one-eyed-alien.net, gregkh@suse.de, linux-usb@vger.kernel.org, usb-storage@lists.one-eyed-alien.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3737 Lines: 84 On Dec 20, 2007 12:07 AM, Alan Stern wrote: > > On Wed, 19 Dec 2007, Dave Young wrote: > > > I tested on another machine with kernel 2.6.24-rc2. And the result is > > diffrent again. > > Here is the result: > > > > 1. on 2.6.24-rc2, when I plugin the player the kernel reports below messages: > > > > usb-storage: waiting for device to settle before scanning > > /*[lets mark the below part as part 1]*/ > > scsi 0:0:0:0: Direct-Access Newman mp3 PQ: 0 ANSI: 0 CCS > > sd 0:0:0:0: [sda] 245248 512-byte hardware sectors (126 MB) > > sd 0:0:0:0: [sda] Write Protect is on > > sd 0:0:0:0: [sda] Mode Sense: 03 00 80 00 > > sd 0:0:0:0: [sda] Assuming drive cache: write through > > sd 0:0:0:0: [sda] 245248 512-byte hardware sectors (126 MB) > > sd 0:0:0:0: [sda] Write Protect is on > > sd 0:0:0:0: [sda] Mode Sense: 03 00 80 00 > > sd 0:0:0:0: [sda] Assuming drive cache: write through > > sda: sda1 > > /*[lets mark the below part as part 2]*/ > > sd 0:0:0:0: [sda] Attached SCSI removable disk > > usb-storage: device scan complete > > sd 0:0:0:0: [sda] 245248 512-byte hardware sectors (126 MB) > > sd 0:0:0:0: [sda] Write Protect is off > > sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00 > > sd 0:0:0:0: [sda] Assuming drive cache: write through > > sd 0:0:0:0: [sda] 245248 512-byte hardware sectors (126 MB) > > sd 0:0:0:0: [sda] Write Protect is off > > sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00 > > sd 0:0:0:0: [sda] Assuming drive cache: write through > > sda: sda1 > > This is not normal. When you plug in a storage device you should get > all of the messages in your part 1 plus the first two lines in your > part 2, but not the rest of part 2. > > > 2. on 2.6.24-rc5 kernel reports only the part 1, after try mount the > > disk it reports the part 2 and mount the partition as rw > > > > 3. on 2.6.24-rc5 kernel reports only the part 1, after try mount the > > disk it just mount the partition as ro with nothing more messages. > > You must have a typo there. Those can't both be true for 2.6.24-rc5. > In fact you shouldn't see part 2 at all. > > Here's what I get when I plug in a USB mass-storage device under > 2.6.24-rc5: > > [ 87.903014] usb-storage: device found at 2 > [ 87.909570] scsi 0:0:0:0: Direct-Access Memorex TD 2B 1.09 PQ: 0 ANSI: 0 CCS > [ 87.913144] usb-storage: device scan complete > [ 88.804031] sd 0:0:0:0: [sda] 243712 512-byte hardware sectors (125 MB) > [ 88.805507] sd 0:0:0:0: [sda] Write Protect is off > [ 88.805577] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00 > [ 88.805639] sd 0:0:0:0: [sda] Assuming drive cache: write through > [ 88.809526] sd 0:0:0:0: [sda] 243712 512-byte hardware sectors (125 MB) > [ 88.810421] sd 0:0:0:0: [sda] Write Protect is off > [ 88.810488] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00 > [ 88.810575] sd 0:0:0:0: [sda] Assuming drive cache: write through > [ 88.810641] sda: sda1 > [ 88.812450] sd 0:0:0:0: [sda] Attached SCSI removable disk > [ 89.041014] sd 0:0:0:0: Attached scsi generic sg0 type 0 > > Mounting the disk produces no extra output at all. I get the same > result under 2.6.23 and earlier operating systems. You should see > approximately the same thing. Hi, Alan I'm sure about my post. I'm not so famillar with usb. It looks weird. Seems that my device will be firstly recoganized as a mp3 player and then a usb storage, so the system will report part 1 & part 2 under previous kernels. Regards dave -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/