Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756265AbZKWTub (ORCPT ); Mon, 23 Nov 2009 14:50:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756205AbZKWTuZ (ORCPT ); Mon, 23 Nov 2009 14:50:25 -0500 Received: from mail-bw0-f223.google.com ([209.85.218.223]:54871 "EHLO mail-bw0-f223.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756096AbZKWTuW (ORCPT ); Mon, 23 Nov 2009 14:50:22 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=RrJBS6z5RX2yRU98jFNT9hgLGIQ9aLi+l+2aA6ucZ22yltI7oEI5zIjlGm5LHlXJbT ibhVgS4VR9Ztr4x8FkVwYGh1RlLzBZj4hKshUntQM5ZFLb+sLHtc5e4/00AtJF1XUbt4 pRzNysflbPmSZcaWCCHYYFD3W8xS4SM6Inc7g= Date: Mon, 23 Nov 2009 14:50:22 -0500 From: tmhikaru@gmail.com To: Jan Kara Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Jens Axboe , linux-scsi@vger.kernel.org, linux-ext4@vger.kernel.org Subject: Re: Weird I/O errors with USB hard drive not remounting filesystem readonly Message-ID: <20091123195022.GA18510@roll> References: <20091123160914.GG15679@duck.suse.cz> <20091123185449.GA11186@quack.suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091123185449.GA11186@quack.suse.cz> User-Agent: Mutt/1.4.2.3i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2369 Lines: 45 On Mon, Nov 23, 2009 at 07:54:50PM +0100, Jan Kara wrote: > On Mon 23-11-09 13:20:26, Alan Stern wrote: > > On Mon, 23 Nov 2009, Jan Kara wrote: > > > > > On Mon 23-11-09 10:06:03, Alan Stern wrote: > > > > On Mon, 23 Nov 2009, Jan Kara wrote: > > > > > > > > > Yeah, from what you write, it looks like USB enclosure is at fault (or it > > > > > could still be your USB controller but I doubt it). It's still a bit > > > > > bothering that the error reported by the drive was not properly propagated > > > > > up to VFS. Either it's some block layer retry/ignore magic that I missed or > > > > > we ignore errors from block layer in some place. > > > > > > > > Is there any interest in tracking this down? It's not hard to find out > > > > what low-level errors are being reported and to generate them on demand > > > > with an emulated USB disk drive. > > > Well, if you could provide me with the patch, I could try to track down > > > why the errors aren't propagated... It would be interesting because if it's > > > not some retry logic in block layer, it's a bug in VFS ;). > > > > I can't provide a patch without first knowing what the errors are. The > > way to find out is to use usbmon. See Documentation/usb/usbmon.txt for > > instructions. > Ah, OK. The problem manifests itself as an error in SATA communication > (which in fact somehow happens over USB, but I don't really know the > details of mass storage over USB) so debugging USB would become actual only > if we found out it's really some bug in an usb stack. But so far the most > probable is just an error somewhere between the USB controller in the > enclosure and the drive itself. BTW: Is the data transferred over USB > checksummed? > > Honza Mind that this is an ide hard drive in a usb enclosure, not sata. The error reported is bizzare. I don't know if I'll be able to get the enclosure to cause the error on demand, but before I try supergluing it, I'll try to do whatever I need to do with usbmon so we can get the error that's actually happening so you can do whatever you need to do to track it down :) Tim McGrath -- 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/